Make WordPress Core

Changeset 43661


Ignore:
Timestamp:
09/28/2018 09:50:45 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document that the $src parameter of WP_Dependencies::add() can be boolean.

Props dimadin.
Fixes #45009.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

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

    r42876 r43661  
    203203     *
    204204     * @param string           $handle Name of the item. Should be unique.
    205      * @param string           $src    Full URL of the item, or path of the item relative to the WordPress root directory.
     205     * @param string|bool      $src    Full URL of the item, or path of the item relative to the WordPress root directory.
     206     *                                 If source is set to false, item is an alias of other items it depends on.
    206207     * @param string[]         $deps   Optional. An array of registered item handles this item depends on. Default empty array.
    207208     * @param string|bool|null $ver    Optional. String specifying item version number, if it has one, which is added to the URL
  • trunk/src/wp-includes/functions.wp-scripts.php

    r43571 r43661  
    141141 *
    142142 * @param string           $handle    Name of the script. Should be unique.
    143  * @param string           $src       Full URL of the script, or path of the script relative to the WordPress root directory.
     143 * @param string|bool      $src       Full URL of the script, or path of the script relative to the WordPress root directory.
     144 *                                    If source is set to false, script is an alias of other scripts it depends on.
    144145 * @param array            $deps      Optional. An array of registered script handles this script depends on. Default empty array.
    145146 * @param string|bool|null $ver       Optional. String specifying script version number, if it has one, which is added to the URL
  • trunk/src/wp-includes/functions.wp-styles.php

    r43571 r43661  
    111111 *
    112112 * @param string           $handle Name of the stylesheet. Should be unique.
    113  * @param string           $src    Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
     113 * @param string|bool      $src    Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
     114 *                                 If source is set to false, stylesheet is an alias of other stylesheets it depends on.
    114115 * @param array            $deps   Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
    115116 * @param string|bool|null $ver    Optional. String specifying stylesheet version number, if it has one, which is added to the URL
Note: See TracChangeset for help on using the changeset viewer.