We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf733b2 commit 922dcf0Copy full SHA for 922dcf0
src/wp-includes/class-wp-script-modules.php
@@ -469,7 +469,7 @@ private function print_script_module( string $id ) {
469
* @since 6.5.0
470
*/
471
public function print_script_module_preloads() {
472
- $dependency_ids = $this->get_sorted_dependencies( array_unique( $this->queue ), array( 'static' ) );
+ $dependency_ids = $this->get_sorted_dependencies( $this->queue, array( 'static' ) );
473
foreach ( $dependency_ids as $id ) {
474
// Don't preload if it's marked for enqueue.
475
if ( in_array( $id, $this->queue, true ) ) {
0 commit comments