WordPress.org

Make WordPress Core

Ticket #46110: 46110.diff

File 46110.diff, 606 bytes (added by mariyan96, 7 months ago)
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index 8672fe5769..33ed34895c 100644
    a b function wp_default_packages_vendor( &$scripts ) { 
    107107                        $handle       = $dependencies;
    108108                        $dependencies = array();
    109109                }
    110 
    111                 $path    = "/wp-includes/js/dist/vendor/$handle$suffix.js";
     110                $suffix  = 'min';
     111                $path    = "/wp-includes/js/dist/vendor/$handle.$suffix.js";
    112112                $version = $vendor_scripts_versions[ $handle ];
    113113
    114114                $scripts->add( $handle, $path, $dependencies, $version, 1 );