`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:
parent
f93abf2bea
commit
0d387bf76e
|
@ -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