WordPress.org

Make WordPress Core

Changeset 44308


Ignore:
Timestamp:
12/18/2018 11:01:15 PM (3 years ago)
Author:
desrosj
Message:

Script Loader: Misplaced parenthesis when wp-tinymce-lists is added.

A closing parenthesis was misplaced in the $scripts->add( 'wp-tinymce-lists' ) call, causing the dependencies and version to be incorrectly passed to includes_url() instead.

Also, Remove an incorrect parameter sent to wp_get_script_polyfill(). wp_get_script_polyfill() only accepts two parameters, but this call was passing a third.

Props volodymyrkolesnykov, swissspidy.

Merges [44208] and [44211] into trunk.

Fixes: #45506, #45472.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r44296 r44308  
    6161    }
    6262
    63     $scripts->add( 'wp-tinymce-lists', includes_url( "js/tinymce/plugins/lists/plugin$suffix.js", array( 'wp-tinymce' ), $tinymce_version ) );
     63    $scripts->add( 'wp-tinymce-lists', includes_url( "js/tinymce/plugins/lists/plugin$suffix.js" ), array( 'wp-tinymce' ), $tinymce_version );
    6464}
    6565
     
    125125                'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
    126126                'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
    127             ),
    128             'after'
     127            )
    129128        )
    130129    );
Note: See TracChangeset for help on using the changeset viewer.