Changeset 31030
- Timestamp:
- 01/03/2015 03:53:30 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r30753 r31030 143 143 $tag = "<script type='text/javascript' src='$src'></script>\n"; 144 144 145 /** 145 /** 146 146 * Filter the HTML script tag of an enqueued script. 147 147 * … … 172 172 $handle = 'jquery-core'; 173 173 174 if ( is_callable( $l10n ) ) { 175 $l10n = call_user_func( $l10n ); 176 } 177 174 178 if ( is_array($l10n) && isset($l10n['l10n_print_after']) ) { // back compat, preserve the code in 'l10n_print_after' if present 175 179 $after = $l10n['l10n_print_after']; -
trunk/src/wp-includes/functions.wp-scripts.php
r31028 r31030 107 107 * @todo Documentation cleanup 108 108 * 109 * @param string $handle Script handle the data will be attached to. 110 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable. 111 * Example: '/[a-zA-Z0-9_]+/'. 112 * @param array $l10n The data itself. The data can be either a single or multi-dimensional array. 109 * @param string $handle Script handle the data will be attached to. 110 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable. 111 * Example: '/[a-zA-Z0-9_]+/'. 112 * @param array|callable $l10n The data itself. The data can be either a single or multi-dimensional array. If a callable 113 * is passed, it will be invoked at runtime. 113 114 * @return bool True if the script was successfully localized, false otherwise. 114 115 */
Note: See TracChangeset
for help on using the changeset viewer.