Add slash to the path when loading translations for default TinyMCE plugins from the plugins directory, fixes #7994

git-svn-id: https://develop.svn.wordpress.org/trunk@9499 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-03 19:16:29 +00:00
parent 48df999a95
commit 550fffaafb

View File

@ -1119,7 +1119,7 @@ function wp_tiny_mce( $teeny = false ) {
$path = WP_PLUGIN_DIR . $path . '/langs/';
if ( function_exists('realpath') )
$path = realpath($path);
$path = trailingslashit( realpath($path) );
if ( is_file($path . $mce_locale . '.js') )
$strings .= @file_get_contents($path . $mce_locale . '.js');