Add missing access modifiers to methods in `WP_Dependencies` and `_WP_Dependency`.

See #27881, #22234.

Built from https://develop.svn.wordpress.org/trunk@28517


git-svn-id: http://core.svn.wordpress.org/trunk@28343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-19 06:14:14 +00:00
parent dc24cef605
commit f998ac39d3
1 changed files with 15 additions and 15 deletions

View File

@ -18,7 +18,7 @@ class WP_Dependencies {
* @since 2.6.8
* @var array
*/
var $registered = array();
public $registered = array();
/**
* An array of queued _WP_Dependency handle objects.
@ -27,7 +27,7 @@ class WP_Dependencies {
* @since 2.6.8
* @var array
*/
var $queue = array();
public $queue = array();
/**
* An array of _WP_Dependency handle objects to queue.
@ -36,7 +36,7 @@ class WP_Dependencies {
* @since 2.6.0
* @var array
*/
var $to_do = array();
public $to_do = array();
/**
* An array of _WP_Dependency handle objects already queued.
@ -45,7 +45,7 @@ class WP_Dependencies {
* @since 2.6.0
* @var array
*/
var $done = array();
public $done = array();
/**
* An array of additional arguments passed when a handle is registered.
@ -56,7 +56,7 @@ class WP_Dependencies {
* @since 2.6.0
* @var array
*/
var $args = array();
public $args = array();
/**
* An array of handle groups to enqueue.
@ -65,7 +65,7 @@ class WP_Dependencies {
* @since 2.8.0
* @var array
*/
var $groups = array();
public $groups = array();
/**
* A handle group to enqueue.
@ -74,7 +74,7 @@ class WP_Dependencies {
* @since 2.8.0
* @var int
*/
var $group = 0;
public $group = 0;
/**
* Process the items and dependencies.
@ -401,7 +401,7 @@ class _WP_Dependency {
* @since 2.6.0
* @var null
*/
var $handle;
public $handle;
/**
* The handle source.
@ -410,7 +410,7 @@ class _WP_Dependency {
* @since 2.6.0
* @var null
*/
var $src;
public $src;
/**
* An array of handle dependencies.
@ -419,7 +419,7 @@ class _WP_Dependency {
* @since 2.6.0
* @var array
*/
var $deps = array();
public $deps = array();
/**
* The handle version.
@ -430,7 +430,7 @@ class _WP_Dependency {
* @since 2.6.0
* @var bool|string
*/
var $ver = false;
public $ver = false;
/**
* Additional arguments for the handle.
@ -439,7 +439,7 @@ class _WP_Dependency {
* @since 2.6.0
* @var null
*/
var $args = null; // Custom property, such as $in_footer or $media.
public $args = null; // Custom property, such as $in_footer or $media.
/**
* Extra data to supply to the handle.
@ -448,14 +448,14 @@ class _WP_Dependency {
* @since 2.6.0
* @var array
*/
var $extra = array();
public $extra = array();
/**
* Setup dependencies.
*
* @since 2.6.0
*/
function __construct() {
public function __construct() {
@list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args();
if ( ! is_array($this->deps) )
$this->deps = array();
@ -471,7 +471,7 @@ class _WP_Dependency {
* @param mixed $data The data value to add.
* @return bool False if not scalar, true otherwise.
*/
function add_data( $name, $data ) {
public function add_data( $name, $data ) {
if ( !is_scalar($name) )
return false;
$this->extra[$name] = $data;