mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 15:19:15 +00:00
Default to 'en' for TinyMCE language if get_locale() is empty, to avoid meltdowns. Props m0n5t3r. fixes #4118 for 2.1
git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
25903703f4
commit
591bf739c9
@ -48,6 +48,8 @@
|
||||
$mce_css = str_replace('http://', 'https://', $mce_css);
|
||||
$mce_popups_css = str_replace('http://', 'https://', $mce_popups_css);
|
||||
}
|
||||
|
||||
$mce_locale = ( empty(get_locale()) ) ? 'en' : strtolower(get_locale());
|
||||
?>
|
||||
|
||||
initArray = {
|
||||
@ -58,7 +60,7 @@ initArray = {
|
||||
theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>",
|
||||
theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>",
|
||||
theme_advanced_buttons3 : "<?php echo $mce_buttons_3; ?>",
|
||||
language : "<?php echo strtolower(get_locale()); ?>",
|
||||
language : "<?php echo $mce_locale; ?>",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_path_location : "bottom",
|
||||
|
Loading…
x
Reference in New Issue
Block a user