Changeset 10202
- Timestamp:
- 12/14/2008 01:12:00 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r10150 r10202 1162 1162 if ( ! empty($mce_external_languages) ) { 1163 1163 foreach ( $mce_external_languages as $name => $path ) { 1164 if ( is_file($path) &&is_readable($path) ) {1164 if ( @is_file($path) && @is_readable($path) ) { 1165 1165 include_once($path); 1166 $ext_plugins .= $strings ;1166 $ext_plugins .= $strings . "\n"; 1167 1167 $loaded_langs[] = $name; 1168 1168 } … … 1185 1185 $path = trailingslashit( realpath($path) ); 1186 1186 1187 if ( is_file($path . $mce_locale . '.js') )1188 $strings .= @file_get_contents($path . $mce_locale . '.js') ;1189 1190 if ( is_file($path . $mce_locale . '_dlg.js') )1191 $strings .= @file_get_contents($path . $mce_locale . '_dlg.js') ;1187 if ( @is_file($path . $mce_locale . '.js') ) 1188 $strings .= @file_get_contents($path . $mce_locale . '.js') . "\n"; 1189 1190 if ( @is_file($path . $mce_locale . '_dlg.js') ) 1191 $strings .= @file_get_contents($path . $mce_locale . '_dlg.js') . "\n"; 1192 1192 1193 1193 if ( 'en' != $mce_locale && empty($strings) ) { 1194 if ( is_file($path . 'en.js') ) {1194 if ( @is_file($path . 'en.js') ) { 1195 1195 $str1 = @file_get_contents($path . 'en.js'); 1196 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str1, 1 ) ;1196 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str1, 1 ) . "\n"; 1197 1197 } 1198 1198 1199 if ( is_file($path . 'en_dlg.js') ) {1199 if ( @is_file($path . 'en_dlg.js') ) { 1200 1200 $str2 = @file_get_contents($path . 'en_dlg.js'); 1201 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str2, 1 ) ;1201 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str2, 1 ) . "\n"; 1202 1202 } 1203 1203 }
Note: See TracChangeset
for help on using the changeset viewer.