Make WordPress Core


Ignore:
Timestamp:
08/18/2023 05:27:16 PM (16 months ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docblock corrections and improvements.

See #58833

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-scripts.php

    r56033 r56414  
    7474 * Called by admin-header.php and {@see 'wp_head'} hook. Since it is called by wp_head on every page load,
    7575 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
    76  * Makes use of already-instantiated $wp_scripts global 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'}
    7777 * hook to register/enqueue new scripts.
    7878 *
     
    114114 *
    115115 * 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 blocks
    117  * are added to the same script $handle, they will be printed in the order
     116 * 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
    118118 * they were added, i.e. the latter added code can redeclare the previous.
    119119 *
     
    202202 * Works only if the script has already been registered.
    203203 *
    204  * Accepts an associative array $l10n and creates a JavaScript object:
    205  *
    206  *     "$object_name" = {
     204 * Accepts an associative array `$l10n` and creates a JavaScript object:
     205 *
     206 *     "$object_name": {
    207207 *         key: value,
    208208 *         key: value,
     
    338338 * Enqueues a script.
    339339 *
    340  * Registers the script if $src provided (does NOT overwrite), and enqueues it.
     340 * Registers the script if `$src` provided (does NOT overwrite), and enqueues it.
    341341 *
    342342 * @see WP_Dependencies::add()
Note: See TracChangeset for help on using the changeset viewer.