`WP_Dependencies->recurse_deps()`: tuck the recursion into `elseif` so the `foreach` doesn't break on the first item.
See [29252]. git-svn-id: https://develop.svn.wordpress.org/trunk@29253 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
77ee35c4eb
commit
b085282340
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue