File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
1414function 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 */
3030function get_core_updates ( $ options = array () ) {
3131 $ options = array_merge ( array ( 'available ' => true , 'dismissed ' => false ), $ options );
You can’t perform that action at this time.
0 commit comments