Skip to content

Commit 4af50cd

Browse files
authored
Updates
1 parent ed62055 commit 4af50cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simple-wp-optimizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,14 +868,14 @@ function add_dns_prefetch() {
868868
// Remove duplicates and validate domains.
869869
$domains = array_unique( $domains );
870870
$valid_domains = array();
871-
871+
872872
foreach ( $domains as $domain ) {
873873
// Validate URL format and ensure HTTPS.
874874
if ( filter_var( $domain, FILTER_VALIDATE_URL ) && strpos( $domain, 'https://' ) === 0 ) {
875875
$valid_domains[] = $domain;
876876
}
877877
}
878-
878+
879879
$domains_cache = $valid_domains;
880880
} else {
881881
$domains_cache = array();

0 commit comments

Comments
 (0)