From 30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:57:26 +0200 Subject: Adding upstream version 6.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/class-wp-scripts.php | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'wp-includes/class-wp-scripts.php') diff --git a/wp-includes/class-wp-scripts.php b/wp-includes/class-wp-scripts.php index 116e98f..7e4bd27 100644 --- a/wp-includes/class-wp-scripts.php +++ b/wp-includes/class-wp-scripts.php @@ -524,33 +524,6 @@ class WP_Scripts extends WP_Dependencies { return trim( implode( "\n", $data ), "\n" ); } - /** - * Gets unaliased dependencies. - * - * An alias is a dependency whose src is false. It is used as a way to bundle multiple dependencies in a single - * handle. This in effect flattens an alias dependency tree. - * - * @since 6.3.0 - * - * @param string[] $deps Dependency handles. - * @return string[] Unaliased handles. - */ - private function get_unaliased_deps( array $deps ) { - $flattened = array(); - foreach ( $deps as $dep ) { - if ( ! isset( $this->registered[ $dep ] ) ) { - continue; - } - - if ( $this->registered[ $dep ]->src ) { - $flattened[] = $dep; - } elseif ( $this->registered[ $dep ]->deps ) { - array_push( $flattened, ...$this->get_unaliased_deps( $this->registered[ $dep ]->deps ) ); - } - } - return $flattened; - } - /** * Gets tags for inline scripts registered for a specific handle. * -- cgit v1.2.3