Make WordPress Core


Ignore:
Timestamp:
11/25/2022 03:10:48 PM (20 months 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.

File:
1 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.
Note: See TracChangeset for help on using the changeset viewer.