mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user