Changes between Version 3 and Version 4 of Ticket #31281, comment 9
- Timestamp:
- 02/22/2015 03:34:30 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31281, comment 9
v3 v4 100 100 ); 101 101 wp_enqueue_script( $script_args ); 102 // should output in footer: 103 // <script id="inline-template" type"text/template"> /* content of /path/to/template.tmpl */ </script> 102 104 103 105 … … 110 112 ); 111 113 wp_enqueue_script( $script_args ); 112 114 // should output in footer: 115 // <script id="inline-js"> /* content of /path/to/inline.js */ </script> 113 116 114 117 // e.G. async script 115 118 $script_args = array( 116 'handle' => ' inline-js',119 'handle' => 'async-js', 117 120 'src' => '/path/to/async.js', 118 121 'attributes' => array( … … 121 124 ); 122 125 wp_enqueue_script( $script_args ); 126 127 128 // should output in <head>: 129 // <script id="async-js" async src="/path/to/async.js"></script> 123 130 }}}
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)