WordPress.org

Make WordPress Core

Changeset 46595


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

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

Props marekdedic

See #48303

Location:
trunk/src/wp-includes
Files:
2 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
  • trunk/src/wp-includes/functions.wp-styles.php

    r44350 r46595  
    113113 * @param string|bool      $src    Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
    114114 *                                 If source is set to false, stylesheet is an alias of other stylesheets it depends on.
    115  * @param array            $deps   Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
     115 * @param string[]         $deps   Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
    116116 * @param string|bool|null $ver    Optional. String specifying stylesheet version number, if it has one, which is added to the URL
    117117 *                                 as a query string for cache busting purposes. If version is set to false, a version
     
    158158 * @param string           $src    Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
    159159 *                                 Default empty.
    160  * @param array            $deps   Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
     160 * @param string[]         $deps   Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
    161161 * @param string|bool|null $ver    Optional. String specifying stylesheet version number, if it has one, which is added to the URL
    162162 *                                 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.