Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #31281, comment 9


Ignore:
Timestamp:
02/22/2015 03:34:30 PM (11 years ago)
Author:
ChriCo

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31281, comment 9

    v3 v4  
    100100);
    101101wp_enqueue_script( $script_args );
     102// should output in footer:
     103// <script id="inline-template" type"text/template"> /* content of /path/to/template.tmpl */ </script>
    102104
    103105
     
    110112);
    111113wp_enqueue_script( $script_args );
    112 
     114// should output in footer:
     115// <script id="inline-js"> /* content of /path/to/inline.js */ </script>
    113116
    114117// e.G. async script
    115118$script_args = array(
    116         'handle'        => 'inline-js',
     119        'handle'        => 'async-js',
    117120        'src'           => '/path/to/async.js',
    118121        'attributes'    => array(
     
    121124);
    122125wp_enqueue_script( $script_args );
     126
     127
     128// should output in <head>:
     129// <script id="async-js" async src="/path/to/async.js"></script>
    123130}}}