Make WordPress Core

Changeset 54875


Ignore:
Timestamp:
11/25/2022 03:10:48 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type for _WP_Dependency::$src property.

The handle source can be set to false, which means the item is an alias of other items it depends on.

Follow-up to [7970], [25518], [43661], [47170], [48462], [54470].

Props mehulkaklotar, swissspidy, costdev.
Fixes #57206.

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

Legend:

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

    r54470 r54875  
    242242     * @param string|false     $src    Full URL of the item, or path of the item relative
    243243     *                                 to the WordPress root directory. If source is set to false,
    244      *                                 item is an alias of other items it depends on.
     244     *                                 the item is an alias of other items it depends on.
    245245     * @param string[]         $deps   Optional. An array of registered item handles this item depends on.
    246246     *                                 Default empty array.
  • trunk/src/wp-includes/class-wp-dependency.php

    r54351 r54875  
    3030     * The handle source.
    3131     *
     32     * If source is set to false, the item is an alias of other items it depends on.
     33     *
    3234     * @since 2.6.0
    33      * @var string
     35     * @var string|false
    3436     */
    3537    public $src;
Note: See TracChangeset for help on using the changeset viewer.