Skip to content
Permalink
Browse files

Scripts: Remove an incorrect parameter sent to `wp_get_script_polyfil…

…l()`.

`wp_get_script_polyfill()` only accepts two parameters, but this call was passing a third.

Props swissspidy.
See #45472.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44208 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
pento committed Dec 15, 2018
1 parent 971928c commit 9a4211dcff8f5779725582ac85b3585eea208840
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/wp-includes/script-loader.php
@@ -124,8 +124,7 @@ function wp_default_packages_vendor( &$scripts ) {
'document.contains' => 'wp-polyfill-node-contains',
'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
),
'after'
)
)
);

0 comments on commit 9a4211d

Please sign in to comment.
You can’t perform that action at this time.