Make WordPress Core

Ticket #25467: 25467.diff

File 25467.diff, 1.6 KB (added by ShinichiN, 12 years ago)

A inline doc patch for wp-includes/update.php

  • src/wp-includes/update.php

     
    4242        if ( $time_not_changed )
    4343                return false;
    4444
    45         $locale = apply_filters( 'core_version_check_locale', get_locale() );
     45        $get_locale = get_locale();
     46        /**
     47         * Filter the locale requested for WordPress core translations.
     48         *
     49         * @since 2.8.0
     50         *
     51         * @param string $get_locale Defaults to the current locale of the site.
     52         */
     53        $locale = apply_filters( 'core_version_check_locale', $get_locale );
    4654
    4755        // Update last_checked for current to prevent multiple blocking requests if request hangs
    4856        $current->last_checked = time();
     
    443451
    444452        $update_title = $titles ? esc_attr( implode( ', ', $titles ) ) : '';
    445453
    446         return apply_filters( 'wp_get_update_data', array( 'counts' => $counts, 'title' => $update_title ), $titles );
     454        $updates_counts_title = array( 'counts' => $counts, 'title' => $update_title );
     455        /**
     456         * Filter the array of counts and titles of update data of plugins, themes and WordPress core.
     457         *
     458         * @since 3.5.0
     459         *
     460         * @param array $update_data_array {
     461         *              Fetched update data.
     462         *             
     463         *              @type array             $counts                 How many updates are available for plugins, themes and WordPress.
     464         *              @type string    $update_title   Titles of available updates.
     465         * }
     466         * @param array $titles                                 Array of the titles of available updates.
     467         */     
     468        return apply_filters( 'wp_get_update_data', $update_data_array, $titles );
    447469}
    448470
    449471function _maybe_update_core() {