diff --git a/wp-includes/class.wp-dependencies.php b/wp-includes/class.wp-dependencies.php index 7aa5e5cb34..eb075c8574 100644 --- a/wp-includes/class.wp-dependencies.php +++ b/wp-includes/class.wp-dependencies.php @@ -247,10 +247,8 @@ class _WP_Dependency { var $extra = array(); function __construct() { - @list($this->handle, $this->src, $this->deps, $this->ver, $this->args) = func_get_args(); - if ( is_string( $this->deps ) && ! empty( $this->deps ) ) - $this->deps = array( $this->deps ); - elseif ( !is_array( $this->deps ) ) + @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args(); + if ( ! is_array($this->deps) ) $this->deps = array(); }