forked from mirror/_s
_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:
parent
7d0846eb2d
commit
8e1367bce3
|
@ -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' );
|
||||||
|
|
Reference in New Issue