From e6b85fc6e0e785bf82c2ee04bde98d85936c2737 Mon Sep 17 00:00:00 2001 From: azaozz Date: Mon, 3 Nov 2008 19:16:29 +0000 Subject: [PATCH] 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 --- wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 8319809c1..5c410ea09 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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');