diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index ac73641287..cfcec25af5 100644
|
a
|
b
|
function wp_resource_hints() { |
| 3312 | 3312 | continue; |
| 3313 | 3313 | } |
| 3314 | 3314 | |
| 3315 | | if ( isset( $unique_urls[ $url ] ) ) { |
| 3316 | | continue; |
| 3317 | | } |
| 3318 | | |
| 3319 | 3315 | if ( in_array( $relation_type, array( 'preconnect', 'dns-prefetch' ), true ) ) { |
| 3320 | 3316 | $parsed = wp_parse_url( $url ); |
| 3321 | 3317 | |
| … |
… |
function wp_resource_hints() { |
| 3334 | 3330 | $atts['rel'] = $relation_type; |
| 3335 | 3331 | $atts['href'] = $url; |
| 3336 | 3332 | |
| 3337 | | $unique_urls[ $url ] = $atts; |
| | 3333 | $unique_urls[ serialize( array_keys( $atts ) ) ] = $atts; |
| 3338 | 3334 | } |
| 3339 | 3335 | |
| 3340 | 3336 | foreach ( $unique_urls as $atts ) { |