Make WordPress Core


Ignore:
Timestamp:
04/09/2007 04:32:05 PM (17 years ago)
Author:
rob1n
Message:

Default to 'en' for TinyMCE language if get_locale() is empty, to avoid meltdowns. Props m0n5t3r. fixes #4118 for 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/js/tinymce/tiny_mce_config.php

    r4931 r5219  
    4949        $mce_popups_css = str_replace('http://', 'https://', $mce_popups_css);
    5050    }
     51   
     52    $mce_locale = ( empty(get_locale()) ) ? 'en' : strtolower(get_locale());
    5153?>
    5254
     
    5961    theme_advanced_buttons2 : "<?php echo $mce_buttons_2; ?>",
    6062    theme_advanced_buttons3 : "<?php echo $mce_buttons_3; ?>",
    61     language : "<?php echo strtolower(get_locale()); ?>",
     63    language : "<?php echo $mce_locale; ?>",
    6264    theme_advanced_toolbar_location : "top",
    6365    theme_advanced_toolbar_align : "left",
Note: See TracChangeset for help on using the changeset viewer.