Changeset 31223 for trunk/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 01/17/2015 01:36:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r31202 r31223 272 272 return (bool) wp_scripts()->query( $handle, $list ); 273 273 } 274 275 /** 276 * Add metadata to a script. 277 * 278 * Works only if the script has already been added. 279 * 280 * Possible values for $key and $value: 281 * 'conditional' string Comments for IE 6, lte IE 7, etc. 282 * 283 * @see WP_Dependency::add_data() 284 * 285 * @since 4.2.0 286 * 287 * @param string $handle Name of the script. 288 * @param string $key Name of data point for which we're storing a value. 289 * @param mixed $value String containing the data to be added. 290 * @return bool True on success, false on failure. 291 */ 292 function wp_script_add_data( $handle, $key, $value ){ 293 global $wp_scripts; 294 return $wp_scripts->add_data( $handle, $key, $value ); 295 }
Note: See TracChangeset
for help on using the changeset viewer.