Changeset 43877
- Timestamp:
- 11/08/2018 09:23:10 AM (6 years ago)
- Location:
- branches/5.0/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/load-scripts.php
r43697 r43877 33 33 34 34 $wp_scripts = new WP_Scripts(); 35 wp_default_scripts($wp_scripts); 35 wp_default_scripts( $wp_scripts ); 36 wp_default_packages_vendor( $wp_scripts ); 37 wp_default_packages_scripts( $wp_scripts ); 36 38 37 39 if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) { -
branches/5.0/src/wp-includes/script-loader.php
r43867 r43877 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.