Make WordPress Core


Ignore:
Timestamp:
01/15/2023 02:55:19 PM (21 months ago)
Author:
audrasjb
Message:

Docs: Use third-person singular verbs for Script Loader related function descriptions, as per docblocks standards.

See #56792.

File:
1 edited

Legend:

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

    r54930 r55072  
    1010
    1111/**
    12  * Initialize $wp_scripts if it has not been set.
     12 * Initializes $wp_scripts if it has not been set.
    1313 *
    1414 * @global WP_Scripts $wp_scripts
     
    149149
    150150/**
    151  * Register a new script.
     151 * Registers a new script.
    152152 *
    153153 * Registers a script to be enqueued later using the wp_enqueue_script() function.
     
    185185
    186186/**
    187  * Localize a script.
     187 * Localizes a script.
    188188 *
    189189 * Works only if the script has already been registered.
     
    250250
    251251/**
    252  * Remove a registered script.
     252 * Removes a registered script.
    253253 *
    254254 * Note: there are intentional safeguards in place to prevent critical admin scripts,
     
    323323
    324324/**
    325  * Enqueue a script.
     325 * Enqueues a script.
    326326 *
    327327 * Registers the script if $src provided (does NOT overwrite), and enqueues it.
     
    365365
    366366/**
    367  * Remove a previously enqueued script.
     367 * Removes a previously enqueued script.
    368368 *
    369369 * @see WP_Dependencies::dequeue()
     
    401401
    402402/**
    403  * Add metadata to a script.
     403 * Adds metadata to a script.
    404404 *
    405405 * Works only if the script has already been registered.
Note: See TracChangeset for help on using the changeset viewer.