Make WordPress Core

Ticket #20251: 20251.patch

File 20251.patch, 1.1 KB (added by SergeyBiryukov, 13 years ago)
  • src/wp-admin/includes/update.php

     
    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();
    … …  
    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 );