Make WordPress Core


Ignore:
Timestamp:
10/26/2019 09:00:08 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Switch to typed array notation for the docs for asset dependency functions.

Props marekdedic

See #48303

File:
1 edited

Legend:

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

    r46311 r46595  
    143143 * @param string|bool      $src       Full URL of the script, or path of the script relative to the WordPress root directory.
    144144 *                                    If source is set to false, script is an alias of other scripts it depends on.
    145  * @param array            $deps      Optional. An array of registered script handles this script depends on. Default empty array.
     145 * @param string[]         $deps      Optional. An array of registered script handles this script depends on. Default empty array.
    146146 * @param string|bool|null $ver       Optional. String specifying script version number, if it has one, which is added to the URL
    147147 *                                    as a query string for cache busting purposes. If version is set to false, a version
     
    307307 * @param string           $src       Full URL of the script, or path of the script relative to the WordPress root directory.
    308308 *                                    Default empty.
    309  * @param array            $deps      Optional. An array of registered script handles this script depends on. Default empty array.
     309 * @param string[]         $deps      Optional. An array of registered script handles this script depends on. Default empty array.
    310310 * @param string|bool|null $ver       Optional. String specifying script version number, if it has one, which is added to the URL
    311311 *                                    as a query string for cache busting purposes. If version is set to false, a version
Note: See TracChangeset for help on using the changeset viewer.