Changeset 32124
- Timestamp:
- 04/14/2015 03:12:49 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r31223 r32124 164 164 $tag = "{$cond_before}<script type='text/javascript' src='$src'></script>\n{$cond_after}"; 165 165 166 /** 166 /** 167 167 * Filter the HTML script tag of an enqueued script. 168 168 * … … 193 193 $handle = 'jquery-core'; 194 194 195 if ( is_callable( $l10n ) ) {196 $l10n = call_user_func( $l10n, $handle, $object_name );197 }198 199 195 if ( is_array($l10n) && isset($l10n['l10n_print_after']) ) { // back compat, preserve the code in 'l10n_print_after' if present 200 196 $after = $l10n['l10n_print_after']; -
trunk/src/wp-includes/functions.wp-scripts.php
r32040 r32124 139 139 * @todo Documentation cleanup 140 140 * 141 * @param string $handle Script handle the data will be attached to. 142 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable. 143 * Example: '/[a-zA-Z0-9_]+/'. 144 * @param array|callable $l10n The data itself. The data can be either a single or multi-dimensional array. If a callable 145 * is passed, it will be invoked at runtime. 141 * @param string $handle Script handle the data will be attached to. 142 * @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable. 143 * Example: '/[a-zA-Z0-9_]+/'. 144 * @param array $l10n The data itself. The data can be either a single or multi-dimensional array. 146 145 * @return bool True if the script was successfully localized, false otherwise. 147 146 */
Note: See TracChangeset
for help on using the changeset viewer.