Ticket #20251: 20251.patch
| File 20251.patch, 1.1 KB (added by , 13 years ago) |
|---|
-
src/wp-admin/includes/update.php
7 7 */ 8 8 9 9 /** 10 * Selects the first update version from the update_core option 10 * Selects the first update version from the update_core option. 11 11 * 12 * @return object the response from the API12 * @return bool|object The response from the API on success, false on failure. 13 13 */ 14 14 function get_preferred_from_update_core() { 15 15 $updates = get_core_updates(); … … 21 21 } 22 22 23 23 /** 24 * Get available core updates 24 * Get available core updates. 25 25 * 26 26 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too, 27 27 * set $options['available'] to false to skip not-dismissed updates. 28 * @return array Array of the update objects28 * @return bool|array Array of the update objects on success, false on failure. 29 29 */ 30 30 function get_core_updates( $options = array() ) { 31 31 $options = array_merge( array( 'available' => true, 'dismissed' => false ), $options );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)