Make WordPress Core

Changeset 44393


Ignore:
Timestamp:
01/04/2019 08:38:34 PM (6 years ago)
Author:
ocean90
Message:

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.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-includes/script-loader.php

    r44390 r44393  
    7777    global $wp_locale;
    7878
    79     $dev_suffix = wp_scripts_get_suffix( 'dev' );
     79    $suffix = wp_scripts_get_suffix();
    8080
    8181    $vendor_scripts = array(
     
    109109        }
    110110
    111         $path = "/wp-includes/js/dist/vendor/$handle$dev_suffix.js";
     111        $path    = "/wp-includes/js/dist/vendor/$handle$suffix.js";
    112112        $version = $vendor_scripts_versions[ $handle ];
    113113
Note: See TracChangeset for help on using the changeset viewer.