Make WordPress Core


Ignore:
Timestamp:
09/28/2018 09:50:45 PM (6 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-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.