Skip to content

Commit 922dcf0

Browse files
Remove redundant array_unique()
Co-authored-by: Peter Wilson <[email protected]>
1 parent bf733b2 commit 922dcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-script-modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ private function print_script_module( string $id ) {
469469
* @since 6.5.0
470470
*/
471471
public function print_script_module_preloads() {
472-
$dependency_ids = $this->get_sorted_dependencies( array_unique( $this->queue ), array( 'static' ) );
472+
$dependency_ids = $this->get_sorted_dependencies( $this->queue, array( 'static' ) );
473473
foreach ( $dependency_ids as $id ) {
474474
// Don't preload if it's marked for enqueue.
475475
if ( in_array( $id, $this->queue, true ) ) {

0 commit comments

Comments
 (0)