Make WordPress Core

Changeset 44391 for trunk


Ignore:
Timestamp:
01/04/2019 08:26:38 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.

Props earnjam.
See #45535.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r44389 r44391  
    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.