Skip to content

Commit

Permalink
Merge branch 'release/3.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazz-Man committed Dec 8, 2023
2 parents a7a9518 + 05734af commit dc08457
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"jazzman/wp-db-pdo": "^0.1.5"
},
"require-dev": {
"jazzman/php-cs-fixer-rules": "^0.2.0",
"jazzman/php-cs-fixer-rules": "^0.2.1",
"jetbrains/phpstorm-attributes": "@dev",
"php-stubs/wordpress-stubs": "^6.3",
"phpstan/extension-installer": "^1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/Optimization/Enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function setScriptVersion( string $scriptSrc, string $handle ): st
$scriptSrc = remove_query_arg( 'ver', $scriptSrc );
}

return app_make_link_relative( $scriptSrc );
return $scriptSrc;
}

public static function jqueryFromCdn(): void {
Expand Down
4 changes: 1 addition & 3 deletions src/Utils/ResourceHints.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,12 @@ private static function getUniqueHintsUrls(): array {
continue;
}

$hintUrl = app_make_link_relative( $hintUrl );

if ( isset( $uniqueUrls[ $hintUrl ] ) ) {
continue;
}

$atts['rel'] = $relationType;
$atts['href'] = $hintUrl;
$atts['rel'] = $relationType;

$uniqueUrls[ $hintUrl ] = $atts;
}
Expand Down

0 comments on commit dc08457

Please sign in to comment.