Make WordPress Core

Changeset 43802


Ignore:
Timestamp:
10/23/2018 06:20:23 AM (5 years ago)
Author:
pento
Message:

Script Loader: Fix metadata being registered as an inline script.

[43723] included script metadata for the wp-polyfill script that was being registered as an inline script.

See #45065.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/script-loader.php

    r43776 r43802  
    103103
    104104    $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill-ecmascript' ) );
    105     did_action( 'init' ) && $scripts->add_inline_script(
     105    did_action( 'init' ) && $scripts->add_data(
    106106        'wp-polyfill',
    107107        'data',
Note: See TracChangeset for help on using the changeset viewer.