`WP_Dependencies->recurse_deps()`: tuck the recursion into `elseif` so the `foreach` doesn't break on the first item.

See [29252].

Built from https://develop.svn.wordpress.org/trunk@29253


git-svn-id: http://core.svn.wordpress.org/trunk@29036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-07-20 00:34:15 +00:00
parent f93abf2bea
commit 0d387bf76e
1 changed files with 2 additions and 2 deletions

View File

@ -341,8 +341,8 @@ class WP_Dependencies {
if ( in_array( $handle, $this->registered[ $queued ]->deps ) ) {
return true;
} else {
return $this->recurse_deps( $this->registered[ $queued ]->deps, $handle );
} elseif ( $this->recurse_deps( $this->registered[ $queued ]->deps, $handle ) ) {
return true;
}
}