Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:25:53 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Further improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r45590 r46661  
    2626
    2727    /**
    28      * An array of queued _WP_Dependency handle objects.
     28     * An array of handles of queued objects.
    2929     *
    3030     * @since 2.6.8
    31      * @var array
     31     * @var string[]
    3232     */
    3333    public $queue = array();
    3434
    3535    /**
    36      * An array of _WP_Dependency handle objects to queue.
    37      *
    38      * @since 2.6.0
    39      * @var array
     36     * An array of handles of objects to queue.
     37     *
     38     * @since 2.6.0
     39     * @var string[]
    4040     */
    4141    public $to_do = array();
    4242
    4343    /**
    44      * An array of _WP_Dependency handle objects already queued.
    45      *
    46      * @since 2.6.0
    47      * @var array
     44     * An array of handles of objects already queued.
     45     *
     46     * @since 2.6.0
     47     * @var string[]
    4848     */
    4949    public $done = array();
     
    8484     * @since 2.8.0 Added the `$group` parameter.
    8585     *
    86      * @param mixed $handles Optional. Items to be processed: Process queue (false), process item (string), process items (array of strings).
    87      * @param mixed $group  Group level: level (int), no groups (false).
    88      * @return array Handles of items that have been processed.
     86     * @param mixed     $handles Optional. Items to be processed: Process queue (false), process item (string), process items (array of strings).
     87     * @param int|false $group   Optional. Group level: level (int), no groups (false).
     88     * @return string[] Array of handles of items that have been processed.
    8989     */
    9090    public function do_items( $handles = false, $group = false ) {
     
    137137     * @since 2.8.0 Added the `$group` parameter.
    138138     *
    139      * @param mixed    $handles   Item handle and argument (string) or item handles and arguments (array of strings).
    140      * @param bool      $recursion Internal flag that function is calling itself.
    141      * @param int|false $group     Group level: (int) level, (false) no groups.
     139     * @param string|string[] $handles   Item handle and argument (string) or item handles and arguments (array of strings).
     140     * @param bool            $recursion Internal flag that function is calling itself.
     141     * @param int|false       $group     Group level: (int) level, (false) no groups.
    142142     * @return bool True on success, false on failure.
    143143     */
     
    271271     * @since 2.6.0 Moved from `WP_Scripts`.
    272272     *
    273      * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings).
     273     * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings).
    274274     * @return void
    275275     */
     
    291291     * @since 2.6.0 Moved from `WP_Scripts`.
    292292     *
    293      * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings).
     293     * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings).
    294294     */
    295295    public function enqueue( $handles ) {
     
    314314     * @since 2.6.0 Moved from `WP_Scripts`.
    315315     *
    316      * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings).
     316     * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings).
    317317     */
    318318    public function dequeue( $handles ) {
Note: See TracChangeset for help on using the changeset viewer.