WordPress.org

Make WordPress Core

Ticket #45535: 45535.diff

File 45535.diff, 875 bytes (added by earnjam, 12 months ago)
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index 2772ab6eb8..0ee69bd9c8 100644
    function wp_register_tinymce_scripts( &$scripts, $force_uncompressed = false ) { 
    7676function wp_default_packages_vendor( &$scripts ) {
    7777        global $wp_locale;
    7878
    79         $dev_suffix = wp_scripts_get_suffix( 'dev' );
     79        $suffix = wp_scripts_get_suffix();
    8080
    8181        $vendor_scripts = array(
    8282                'react'     => array( 'wp-polyfill' ),
    function wp_default_packages_vendor( &$scripts ) { 
    108108                        $dependencies = 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
    114114                $scripts->add( $handle, $path, $dependencies, $version, 1 );