Make WordPress Core


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.