Skip to content

Commit

Permalink
TinyMCE: retire wp-tinymce.php and remove pre-compression of wp-tinym…
Browse files Browse the repository at this point in the history
…ce.js.

Fixes #45645.

git-svn-id: http://develop.svn.wordpress.org/trunk@44651 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
azaozz committed Jan 18, 2019
1 parent fdfaa00 commit df778d7
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 227 deletions.
19 changes: 1 addition & 18 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ module.exports = function(grunt) {
cwd: WORKING_DIR,
src: []
},
tinymce: ['<%= concat.tinymce.dest %>'],
qunit: ['tests/qunit/compiled.html']
},
file_append: {
Expand Down Expand Up @@ -763,16 +762,6 @@ module.exports = function(grunt) {
dest: WORKING_DIR + 'wp-includes/js/wp-emoji-release.min.js'
}
},
compress: {
tinymce: {
options: {
mode: 'gzip',
level: 9
},
src: '<%= concat.tinymce.dest %>',
dest: WORKING_DIR + 'wp-includes/js/tinymce/wp-tinymce.js.gz'
}
},
patch:{
options: {
file_mappings: {
Expand Down Expand Up @@ -1346,20 +1335,14 @@ module.exports = function(grunt) {
'uglify:imgareaselect'
] );

grunt.registerTask( 'build:tinymce', [
'concat:tinymce',
'compress:tinymce',
'clean:tinymce'
] );

grunt.registerTask( 'build:js', [
'clean:js',
'webpack:prod',
'webpack:dev',
'copy:js',
'file_append',
'uglify:all',
'build:tinymce',
'concat:tinymce',
'concat:emoji',
'jsvalidate:build'
] );
Expand Down
Loading

0 comments on commit df778d7

Please sign in to comment.