+ /**
+ * A handle group to enqueue.
+ *
+ * @access public
+ * @since 2.8.0
+ * @deprecated 4.5.0
+ * @var int
+ */
+ public $group = 0;
+
+ /**
+ * Processes the items and dependencies.
+ *
+ * Processes the items passed to it or the queue, and their dependencies.
+ *
+ * @access public
+ * @since 2.6.0
+ * @since 2.8.0 Added the `$group` parameter.
+ *
+ * @param mixed $handles Optional. Items to be processed: Process queue (false), process item (string), process items (array of strings).
+ * @param mixed $group Group level: level (int), no groups (false).
+ * @return array Handles of items that have been processed.
+ */
+ public function do_items( $handles = false, $group = false ) {
+ /*
+ * If nothing is passed, print the queue. If a string is passed,
+ * print that item. If an array is passed, print those items.
+ */
+ $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.
+ */