mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-27 12:30:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user