Skip to content

Commit 30e3b46

Browse files
committed
Follow-up link rel=me fix
1 parent 37cf5ac commit 30e3b46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mu-plugins/jquery-actions.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ function jquery_xfnrelme_wp_head() {
5353
$sites[ JQUERY_LIVE_SITE ]['xfn-rel-me'] :
5454
array();
5555
foreach ( $links as $url ) {
56-
echo '<link rel="me" href="' . esc_url( $url ) . '">' . "\n";
56+
// We use esc_attr instead of esc_url, as the latter would shorten
57+
// the URL to be scheme-less as "//example" instead of "https://example",
58+
// which prevents relation verification.
59+
echo '<link rel="me" href="' . esc_attr( $url ) . '">' . "\n";
5760
}
5861
}
5962

0 commit comments

Comments
 (0)