Ticket #14553: 14553.diff
| File 14553.diff, 1.4 KB (added by , 15 years ago) |
|---|
-
wp-includes/update.php
33 33 $current->version_checked = $wp_version; 34 34 } 35 35 36 $locale = apply_filters( 'core_version_check_locale', get_locale( ) );36 $locale = apply_filters( 'core_version_check_locale', get_locale( true ) ); 37 37 38 38 // Update last_checked for current to prevent multiple blocking requests if request hangs 39 39 $current->last_checked = time(); -
wp-includes/l10n.php
23 23 * @uses apply_filters() Calls 'locale' hook on locale value. 24 24 * @uses $locale Gets the locale stored in the global. 25 25 * 26 * @param bool $network Whether to retrieve the network wide setting when running 27 * multisite. Optional, default false. 26 28 * @return string The locale of the blog or from the 'locale' hook. 27 29 */ 28 function get_locale( ) {30 function get_locale( $network = false ) { 29 31 global $locale; 30 32 31 33 if ( isset( $locale ) ) … … 37 39 38 40 // If multisite, check options. 39 41 if ( is_multisite() && !defined('WP_INSTALLING') ) { 40 $ms_locale = get_option('WPLANG'); 41 if ( $ms_locale === false ) 42 if ( $network || false === get_option('WPLANG') ) 42 43 $ms_locale = get_site_option('WPLANG'); 43 44 44 45 if ( $ms_locale !== false )