mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 20:15:08 +00:00
Script Loader: Load unminified package vendor scripts when SCRIPT_DEBUG
is set.
The unminified package vendor scripts are bundled with the release package thus the value of the `SCRIPT_DEBUG` constant should be honored. Merge of [44391] to the 5.0 branch. Props earnjam. Fixes #45535. Built from https://develop.svn.wordpress.org/branches/5.0@44393 git-svn-id: http://core.svn.wordpress.org/branches/5.0@44223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e961742769
commit
06a721c9a1
@ -76,7 +76,7 @@ function wp_register_tinymce_scripts( &$scripts, $force_uncompressed = false ) {
|
||||
function wp_default_packages_vendor( &$scripts ) {
|
||||
global $wp_locale;
|
||||
|
||||
$dev_suffix = wp_scripts_get_suffix( 'dev' );
|
||||
$suffix = wp_scripts_get_suffix();
|
||||
|
||||
$vendor_scripts = array(
|
||||
'react' => array( 'wp-polyfill' ),
|
||||
@ -108,7 +108,7 @@ function wp_default_packages_vendor( &$scripts ) {
|
||||
$dependencies = array();
|
||||
}
|
||||
|
||||
$path = "/wp-includes/js/dist/vendor/$handle$dev_suffix.js";
|
||||
$path = "/wp-includes/js/dist/vendor/$handle$suffix.js";
|
||||
$version = $vendor_scripts_versions[ $handle ];
|
||||
|
||||
$scripts->add( $handle, $path, $dependencies, $version, 1 );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0.3-alpha-44392';
|
||||
$wp_version = '5.0.3-alpha-44393';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user