WordPress.org

Make WordPress Core

Ticket #21170: 21170.5.diff

File 21170.5.diff, 1.6 KB (added by aduth, 9 months ago)

My take on @adamsilverstein's patch with consideration of previous remarks

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

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index b2e24d6..e0e4613 100644
    function wp_default_scripts( &$scripts ) { 
    8585 
    8686        $scripts->add( 'wp-a11y', "/wp-includes/js/wp-a11y$suffix.js", array( 'jquery' ), false, 1 ); 
    8787 
     88        $scripts->add( 'wp-hooks', "/wp-includes/js/wp-hooks$suffix.js", array(), false, 1 ); 
     89 
    8890        $scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", array(), '1.6.1', 1 ); 
    8991 
    9092        $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 ); 
  • tests/qunit/index.html

    diff --git tests/qunit/index.html tests/qunit/index.html
    index 0c9d820..fca4114 100644
     
    5050                <script src="../../src/wp-includes/js/customize-base.js"></script> 
    5151                <script src="../../src/wp-includes/js/customize-models.js"></script> 
    5252                <script src="../../src/wp-includes/js/shortcode.js"></script> 
     53                <script src="../../src/wp-includes/js/wp-hooks.js"></script> 
    5354                <script src="../../src/wp-admin/js/customize-controls.js"></script> 
    5455                <script src="../../src/wp-includes/js/wp-api.js"></script> 
    5556 
     
    7071                <script src="wp-admin/js/customize-base.js"></script> 
    7172                <script src="wp-admin/js/customize-header.js"></script> 
    7273                <script src="wp-includes/js/shortcode.js"></script> 
     74                <script src="wp-includes/js/wp-hooks.js"></script> 
    7375                <script src="wp-includes/js/wp-api.js"></script> 
    7476                <script src="wp-admin/js/customize-controls.js"></script> 
    7577                <script src="wp-admin/js/customize-controls-utils.js"></script>