Don't include the non-minified tinymce.js in /build. Load it when running from /src, else load wp-tinymce.js.gz (production) or tinymce.min.js (SCRIPT_DEBUG). Props nacin, fixes #27739

git-svn-id: https://develop.svn.wordpress.org/trunk@28081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2014-04-11 22:16:01 +00:00
parent 33e687ca57
commit 8aacd10a8c
3 changed files with 7 additions and 3 deletions

View File

@@ -32,7 +32,8 @@ if ( isset($_GET['c']) && 1 == $_GET['c'] && isset($_SERVER['HTTP_ACCEPT_ENCODIN
header('Content-Encoding: gzip');
echo $file;
} else {
echo get_file($basepath . '/tiny_mce.js');
echo get_file($basepath . '/wp-tinymce-schema.js');
// Back compat. This file shouldn't be used if this condition can occur (as in, if gzip isn't accepted).
echo get_file( $basepath . '/tinymce.min.js' );
echo get_file( $basepath . '/plugins/compat3x/plugin.min.js' );
}
exit;