Changeset 44237
- Timestamp:
- 12/16/2018 08:37:30 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43867,43877
- Property svn:mergeinfo changed
-
trunk/src/wp-admin/load-scripts.php
r43580 r44237 36 36 $wp_scripts = new WP_Scripts(); 37 37 wp_default_scripts( $wp_scripts ); 38 wp_default_packages_vendor( $wp_scripts ); 39 wp_default_packages_scripts( $wp_scripts ); 38 40 39 41 if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) { -
trunk/src/wp-includes/script-loader.php
r44236 r44237 44 44 function wp_register_tinymce_scripts( &$scripts, $force_uncompressed = false ) { 45 45 global $tinymce_version, $concatenate_scripts, $compress_scripts; 46 $suffix = SCRIPT_DEBUG ? '' : '.min'; 46 $suffix = wp_scripts_get_suffix(); 47 $dev_suffix = wp_scripts_get_suffix( 'dev' ); 47 48 48 49 script_concat_settings(); … … 53 54 // Load tinymce.js when running from /src, otherwise load wp-tinymce.js.gz (in production) or 54 55 // tinymce.min.js (when SCRIPT_DEBUG is true). 55 $mce_suffix = false !== strpos( get_bloginfo( 'version' ), '-src' ) ? '' : '.min';56 56 if ( $compressed ) { 57 57 $scripts->add( 'wp-tinymce', includes_url( 'js/tinymce/' ) . 'wp-tinymce.php', array(), $tinymce_version ); 58 58 } else { 59 $scripts->add( 'wp-tinymce-root', includes_url( 'js/tinymce/' ) . "tinymce$ mce_suffix.js", array(), $tinymce_version );60 $scripts->add( 'wp-tinymce', includes_url( 'js/tinymce/' ) . "plugins/compat3x/plugin$ suffix.js", array( 'wp-tinymce-root' ), $tinymce_version );59 $scripts->add( 'wp-tinymce-root', includes_url( 'js/tinymce/' ) . "tinymce$dev_suffix.js", array(), $tinymce_version ); 60 $scripts->add( 'wp-tinymce', includes_url( 'js/tinymce/' ) . "plugins/compat3x/plugin$dev_suffix.js", array( 'wp-tinymce-root' ), $tinymce_version ); 61 61 } 62 62 … … 75 75 */ 76 76 function wp_default_packages_vendor( &$scripts ) { 77 wp_register_tinymce_scripts( $scripts );78 79 77 $dev_suffix = wp_scripts_get_suffix( 'dev' ); 80 78
Note: See TracChangeset
for help on using the changeset viewer.