diff --git a/wp-includes/class.wp-dependencies.php b/wp-includes/class.wp-dependencies.php index fb1f1ee0c2..adc0157490 100644 --- a/wp-includes/class.wp-dependencies.php +++ b/wp-includes/class.wp-dependencies.php @@ -245,7 +245,9 @@ class _WP_Dependency { function __construct() { @list($this->handle, $this->src, $this->deps, $this->ver, $this->args) = func_get_args(); - if ( !is_array($this->deps) ) + if ( is_string( $this->deps ) ) + $this->deps = array( $this->deps ); + elseif ( !is_array( $this->deps ) ) $this->deps = array(); }