From 90e990d983608a3b4d33db8a058c8b44ff81cd02 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 8 Aug 2012 17:21:24 +0000 Subject: [PATCH] When WP_Dependencies accept a string for a single dependency, make sure the string is not empty, see #20683 git-svn-id: https://develop.svn.wordpress.org/trunk@21481 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class.wp-dependencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();