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
This commit is contained in:
Andrew Ozz 2012-08-08 17:21:24 +00:00
parent 4c0121178b
commit 90e990d983
1 changed files with 1 additions and 1 deletions

View File

@ -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();