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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-03 19:16:29 +00:00
parent ae9a9b418f
commit e6b85fc6e0
1 changed files with 1 additions and 1 deletions

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');