Changeset 4699
- Timestamp:
- 01/08/2007 12:11:06 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/locale.php
r4194 r4699 88 88 $this->meridiem['PM'] = __('PM'); 89 89 90 $this->_load_locale_data(); 91 } 90 // Import global locale vars set during inclusion of $locale.php. 91 foreach ( $this->locale_vars as $var ) { 92 if ( isset($GLOBALS[$var]) ) 93 $this->$var = $GLOBALS[$var]; 94 } 92 95 93 function _load_locale_data() {94 $locale = get_locale();95 $locale_file = ABSPATH . "wp-includes/languages/$locale.php";96 if ( !file_exists($locale_file) )97 return;98 99 include($locale_file);100 101 foreach ( $this->locale_vars as $var ) {102 $this->$var = $$var;103 }104 96 } 105 97 -
trunk/wp-settings.php
r4695 r4699 243 243 load_default_textdomain(); 244 244 245 $locale = get_locale(); 246 $locale_file = ABSPATH . LANGDIR . "/$locale.php"; 247 if ( is_readable($locale_file) ) 248 require_once($locale_file); 249 245 250 // Pull in locale data after loading text domain. 246 251 require_once(ABSPATH . WPINC . '/locale.php');
Note: See TracChangeset
for help on using the changeset viewer.