diff --git a/src/wp-includes/class.wp-dependencies.php b/src/wp-includes/class.wp-dependencies.php index 313faa19ed..9ed26568ed 100644 --- a/src/wp-includes/class.wp-dependencies.php +++ b/src/wp-includes/class.wp-dependencies.php @@ -128,11 +128,14 @@ class WP_Dependencies { * 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 string $handle Name of the item. Should be unique. + * @param int|false $group Optional. Group level: level (int), no groups (false). + * Default false. * @return bool True on success, false if not set. */ - public function do_item( $handle ) { + public function do_item( $handle, $group = false ) { return isset( $this->registered[ $handle ] ); } diff --git a/src/wp-includes/class.wp-styles.php b/src/wp-includes/class.wp-styles.php index a84efb278f..2a4780222a 100644 --- a/src/wp-includes/class.wp-styles.php +++ b/src/wp-includes/class.wp-styles.php @@ -139,13 +139,16 @@ class WP_Styles extends WP_Dependencies { * Processes a style dependency. * * @since 2.6.0 + * @since 5.5.0 Added the `$group` parameter. * * @see WP_Dependencies::do_item() * - * @param string $handle The style's registered handle. + * @param string $handle The style's registered handle. + * @param int|false $group Optional. Group level: level (int), no groups (false). + * Default false. * @return bool True on success, false on failure. */ - public function do_item( $handle ) { + public function do_item( $handle, $group = false ) { if ( ! parent::do_item( $handle ) ) { return false; }