WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/27/2016 08:33:57 PM (5 years ago)
Author:
ocean90
Message:

Docs: Improve inline docs for WP_Dependencies, WP_Styles, and WP_Scripts.

Also, make them and related files part of WordPress.

See #35964.

File:
1 edited

Legend:

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

    r36732 r36744  
    11<?php
    22/**
    3  * BackPress Scripts enqueue
     3 * Dependencies API: WP_Dependencies base class
    44 *
    5  * Classes were refactored from the WP_Scripts and WordPress script enqueue API.
     5 * @since 2.6.0
    66 *
    7  * @since BackPress r74
     7 * @package WordPress
     8 * @subpackage Dependencies
     9 */
     10
     11/**
     12 * Core base class extended to register items.
    813 *
    9  * @package BackPress
     14 * @package WordPress
     15 * @since 2.6.0
    1016 * @uses _WP_Dependency
    11  * @since r74
    1217 */
    1318class WP_Dependencies {
     
    7883
    7984    /**
    80      * Process the items and dependencies.
     85     * Processes the items and dependencies.
    8186     *
    8287     * Processes the items passed to it or the queue, and their dependencies.
     
    117122
    118123    /**
    119      * Process a dependency.
     124     * Processes a dependency.
    120125     *
    121126     * @access public
     
    130135
    131136    /**
    132      * Determine dependencies.
     137     * Determines dependencies.
    133138     *
    134139     * Recursively builds an array of items to process taking
     
    140145     * @since 2.8.0 Added the `$group` parameter.
    141146     *
    142      * @param mixed $handles   Item handle and argument (string) or item handles and arguments (array of strings).
    143      * @param bool  $recursion Internal flag that function is calling itself.
    144      * @param mixed $group     Group level: (int) level, (false) no groups.
     147     * @param mixed     $handles   Item handle and argument (string) or item handles and arguments (array of strings).
     148     * @param bool      $recursion Internal flag that function is calling itself.
     149     * @param int|false $group     Group level: (int) level, (false) no groups.
    145150     * @return bool True on success, false on failure.
    146151     */
Note: See TracChangeset for help on using the changeset viewer.