WP_Dependencies::recurse_deps( string[] $queue, string $handle )
Recursively search the passed dependency tree for $handle
Description Description
Parameters Parameters
- $queue
-
(string[]) (Required) An array of queued _WP_Dependency handles.
- $handle
-
(string) (Required) Name of the item. Should be unique.
Return Return
(bool) Whether the handle is found after recursively searching the dependency tree.
Source Source
File: wp-includes/class.wp-dependencies.php
protected function recurse_deps( $queue, $handle ) { foreach ( $queue as $queued ) { if ( ! isset( $this->registered[ $queued ] ) ) { continue; } if ( in_array( $handle, $this->registered[ $queued ]->deps ) ) { return true; } elseif ( $this->recurse_deps( $this->registered[ $queued ]->deps, $handle ) ) { return true; } } return false; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |