$handles = false ===
$handles ?
$this->queue :
(array) $handles;
$this->
all_deps( $handles );
foreach ( $this->to_do
as $key =>
$handle ) { if ( !
in_array( $handle,
$this->done, true
) &&
isset( $this->registered
[ $handle ] ) ) { /*
* Attempt to process the item. If successful,
* add the handle to the done array.
*
* Unset the item from the to_do array.
*/
if ( $this->
do_item( $handle,
$group ) ) { $this->done
[] =
$handle;
} unset( $this->to_do
[ $key ] );
} } return $this->done;
} /**
* Processes a dependency.
*
* @since 2.6.0
* @since 5.5.0 Added the `$group` parameter.
*
* @param string $handle Name of the item. Should be unique.
* @param int|false $group Optional. Group level: level (int), no group (false).
* Default false.
* @return bool True on success, false if not set.
*/