+ /**
+ * Recursively search the passed dependency tree for $handle
+ *
+ * @since 4.0.0
+ *
+ * @param array $queue An array of queued _WP_Dependency handle objects.
+ * @param string $handle Name of the item. Should be unique.
+ * @return boolean Whether the handle is found after recursively searching the dependency tree.
+ */
+ 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;
+ }
+