Skip to content

Commit 449e436

Browse files
committed
Clarify return values for get_preferred_from_update_core() and get_core_updates().
props SergeyBiryukov. fixes #20251. git-svn-id: https://develop.svn.wordpress.org/trunk@27264 602fd350-edb4-49c9-b593-d223f7449a82
1 parent db2203a commit 449e436

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-admin/includes/update.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
*/
88

99
/**
10-
* Selects the first update version from the update_core option
10+
* Selects the first update version from the update_core option.
1111
*
12-
* @return object the response from the API
12+
* @return bool|object The response from the API on success, false on failure.
1313
*/
1414
function get_preferred_from_update_core() {
1515
$updates = get_core_updates();
@@ -21,11 +21,11 @@ function get_preferred_from_update_core() {
2121
}
2222

2323
/**
24-
* Get available core updates
24+
* Get available core updates.
2525
*
2626
* @param array $options Set $options['dismissed'] to true to show dismissed upgrades too,
2727
* set $options['available'] to false to skip not-dismissed updates.
28-
* @return array Array of the update objects
28+
* @return bool|array Array of the update objects on success, false on failure.
2929
*/
3030
function get_core_updates( $options = array() ) {
3131
$options = array_merge( array( 'available' => true, 'dismissed' => false ), $options );

0 commit comments

Comments
 (0)