WordPress.org

Make WordPress Core

Ticket #45469: 45469.diff

File 45469.diff, 698 bytes (added by swissspidy, 7 months ago)
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index b21f9a6f49..6775c7a746 100644
    function wp_default_packages_vendor( &$scripts ) { 
    108108                        $dependencies = array();
    109109                }
    110110
    111                 $path = "/wp-includes/js/dist/vendor/$handle$dev_suffix.js";
     111                $src = $scripts->base_url . "/wp-includes/js/dist/vendor/$handle$dev_suffix.js";
    112112                $version = $vendor_scripts_versions[ $handle ];
    113113
    114                 $scripts->add( $handle, $path, $dependencies, $version, 1 );
     114                $scripts->add( $handle, $src, $dependencies, $version, 1 );
    115115        }
    116116
    117117        $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );