Changeset 56414 for trunk/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 08/18/2023 05:27:16 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r56033 r56414 74 74 * Called by admin-header.php and {@see 'wp_head'} hook. Since it is called by wp_head on every page load, 75 75 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed. 76 * Makes use of already-instantiated $wp_scriptsglobal if present. Use provided {@see 'wp_print_scripts'}76 * Makes use of already-instantiated `$wp_scripts` global if present. Use provided {@see 'wp_print_scripts'} 77 77 * hook to register/enqueue new scripts. 78 78 * … … 114 114 * 115 115 * Code will only be added if the script is already in the queue. 116 * Accepts a string $data containing the Code. If two or more code blocks117 * are added to the same script $handle, they will be printed in the order116 * Accepts a string `$data` containing the code. If two or more code blocks 117 * are added to the same script `$handle`, they will be printed in the order 118 118 * they were added, i.e. the latter added code can redeclare the previous. 119 119 * … … 202 202 * Works only if the script has already been registered. 203 203 * 204 * Accepts an associative array $l10nand creates a JavaScript object:205 * 206 * "$object_name" ={204 * Accepts an associative array `$l10n` and creates a JavaScript object: 205 * 206 * "$object_name": { 207 207 * key: value, 208 208 * key: value, … … 338 338 * Enqueues a script. 339 339 * 340 * Registers the script if $srcprovided (does NOT overwrite), and enqueues it.340 * Registers the script if `$src` provided (does NOT overwrite), and enqueues it. 341 341 * 342 342 * @see WP_Dependencies::add()
Note: See TracChangeset
for help on using the changeset viewer.