Make WordPress Core

Changeset 44143 for trunk


Ignore:
Timestamp:
12/14/2018 02:01:08 AM (7 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.

Merges [43802] from the 5.0 branch to trunk.

See #45065.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r44134 r44143  
    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.