summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-wp-scripts.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
commitfa9a33d818470a5796f0ff8797f98b510ed8de18 (patch)
treebde6a1eede376f9b5df5898ce812330152984d8e /wp-includes/class-wp-scripts.php
parentReleasing progress-linux version 6.4.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.tar.xz
wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.zip
Merging upstream version 6.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--wp-includes/class-wp-scripts.php27
1 files changed, 0 insertions, 27 deletions
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
@@ -525,33 +525,6 @@ class WP_Scripts extends WP_Dependencies {
}
/**
- * 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.
*
* @since 6.3.0