Changeset 38976 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 10/27/2016 03:42:09 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/l10n.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r38961 r38976 29 29 */ 30 30 function get_locale() { 31 global $locale, $wp_local_package ;31 global $locale, $wp_local_package, $wpdb; 32 32 33 33 if ( isset( $locale ) ) { … … 49 49 if ( defined( 'WPLANG' ) ) { 50 50 $locale = WPLANG; 51 } 52 53 // If $wpdb hasn't been initialised yet, we can only return what we have. 54 if ( ! $wpdb ) { 55 if ( ! $locale ) { 56 return 'en_US'; 57 } 58 59 return $locale; 51 60 } 52 61
Note: See TracChangeset
for help on using the changeset viewer.