Make WordPress Core


Ignore:
Timestamp:
03/14/2016 10:36:26 PM (9 years ago)
Author:
johnbillion
Message:

Docs: Improvements and corrections for the $ver parameter of the dependencies API functions.

See #32246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-dependencies.php

    r36871 r36993  
    205205     * @since 2.6.0 Moved from `WP_Scripts`.
    206206     *
    207      * @param string $handle Unique item name.
    208      * @param string $src    The item url.
    209      * @param array  $deps   Optional. An array of item handle strings on which this item depends.
    210      * @param string $ver    Optional. Version (used for cache busting).
    211      * @param mixed  $args   Optional. Custom property of the item. NOT the class property $args. Examples: $media, $in_footer.
     207     * @param string           $handle Name of the item. Should be unique.
     208     * @param string           $src    Full URL of the item, or path of the item relative to the WordPress root directory.
     209     * @param array            $deps   Optional. An array of registered item handles this item depends on. Default empty array.
     210     * @param string|bool|null $ver    Optional. String specifying item version number, if it has one, which is added to the URL
     211     *                                 as a query string for cache busting purposes. If version is set to false, a version
     212     *                                 number is automatically added equal to current installed WordPress version.
     213     *                                 If set to null, no version is added.
    212214     * @return bool Whether the item has been registered. True on success, false on failure.
    213215     */
Note: See TracChangeset for help on using the changeset viewer.