Skip to content

Commit d91f8c3

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

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
@@ -526,7 +526,7 @@ public function print_import_map() {
526526
*/
527527
private function get_import_map(): array {
528528
$imports = array();
529-
foreach ( $this->get_dependencies( array_unique( $this->queue ) ) as $id ) {
529+
foreach ( $this->get_dependencies( $this->queue ) as $id ) {
530530
$src = $this->get_src( $id );
531531
if ( '' !== $src ) {
532532
$imports[ $id ] = $src;

0 commit comments

Comments
 (0)