Skip to content

Commit e61bce8

Browse files
supertassuKrinkle
authored andcommitted
jquery-actions: fix empty XFN rel=me link
Follows-up 9a046fc.
1 parent 9a046fc commit e61bce8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mu-plugins/jquery-actions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
// - https://microformats.org/wiki/rel-me
3333
// - https://gmpg.org/xfn/
3434
function jquery_xfnrelme_wp_head() {
35-
$links = explode( ',', get_option( 'jquery_xfn_rel_me' , '' ) );
35+
$option = get_option( 'jquery_xfn_rel_me' , '' );
36+
$links = $option !== '' ? explode( ',', $option ) : array();
3637
foreach ( $links as $url ) {
3738
// We use esc_attr instead of esc_url, as the latter would shorten
3839
// the URL to be scheme-less as "//example" instead of "https://example",

0 commit comments

Comments
 (0)