Ticket #25467: 25467.diff
File 25467.diff, 1.6 KB (added by , 10 years ago) |
---|
-
src/wp-includes/update.php
42 42 if ( $time_not_changed ) 43 43 return false; 44 44 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 ); 46 54 47 55 // Update last_checked for current to prevent multiple blocking requests if request hangs 48 56 $current->last_checked = time(); … … 443 451 444 452 $update_title = $titles ? esc_attr( implode( ', ', $titles ) ) : ''; 445 453 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 ); 447 469 } 448 470 449 471 function _maybe_update_core() {