WordPress.org

Make WordPress Core

Changeset 28517


Ignore:
Timestamp:
05/19/2014 06:13:24 AM (4 years ago)
Author:
wonderboymusic
Message:

Add missing access modifiers to methods in WP_Dependencies and _WP_Dependency.

See #27881, #22234.

File:
1 edited

Legend:

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

    r25524 r28517  
    1919     * @var array
    2020     */
    21     var $registered = array();
     21    public $registered = array();
    2222
    2323    /**
     
    2828     * @var array
    2929     */
    30     var $queue = array();
     30    public $queue = array();
    3131
    3232    /**
     
    3737     * @var array
    3838     */
    39     var $to_do = array();
     39    public $to_do = array();
    4040
    4141    /**
     
    4646     * @var array
    4747     */
    48     var $done = array();
     48    public $done = array();
    4949
    5050    /**
     
    5757     * @var array
    5858     */
    59     var $args = array();
     59    public $args = array();
    6060
    6161    /**
     
    6666     * @var array
    6767     */
    68     var $groups = array();
     68    public $groups = array();
    6969
    7070    /**
     
    7575     * @var int
    7676     */
    77     var $group = 0;
     77    public $group = 0;
    7878
    7979    /**
     
    402402     * @var null
    403403     */
    404     var $handle;
     404    public $handle;
    405405
    406406    /**
     
    411411     * @var null
    412412     */
    413     var $src;
     413    public $src;
    414414
    415415    /**
     
    420420     * @var array
    421421     */
    422     var $deps = array();
     422    public $deps = array();
    423423
    424424    /**
     
    431431     * @var bool|string
    432432     */
    433     var $ver = false;
     433    public $ver = false;
    434434
    435435    /**
     
    440440     * @var null
    441441     */
    442     var $args = null;  // Custom property, such as $in_footer or $media.
     442    public $args = null;  // Custom property, such as $in_footer or $media.
    443443
    444444    /**
     
    449449     * @var array
    450450     */
    451     var $extra = array();
     451    public $extra = array();
    452452
    453453    /**
     
    456456     * @since 2.6.0
    457457     */
    458     function __construct() {
     458    public function __construct() {
    459459        @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args();
    460460        if ( ! is_array($this->deps) )
     
    472472     * @return bool False if not scalar, true otherwise.
    473473     */
    474     function add_data( $name, $data ) {
     474    public function add_data( $name, $data ) {
    475475        if ( !is_scalar($name) )
    476476            return false;
Note: See TracChangeset for help on using the changeset viewer.