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