_s_pingback_header should use get_bloginfo instead of bloginfo because echo is already being used to output the link tag (entire line)

This commit is contained in:
Bjorn 2016-10-18 17:48:16 -05:00
parent 7d0846eb2d
commit 8e1367bce3
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ add_filter( 'body_class', '_s_body_classes' );
*/ */
function _s_pingback_header() { function _s_pingback_header() {
if ( is_singular() && pings_open() ) { if ( is_singular() && pings_open() ) {
echo '<link rel="pingback" href="', bloginfo( 'pingback_url' ), '">'; echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
} }
} }
add_action( 'wp_head', '_s_pingback_header' ); add_action( 'wp_head', '_s_pingback_header' );