Merge pull request #1035 from bjorn2404/master

The header change to use a get_bloginfo : props @bjorn2404 
Can you please make sure you explain beyond just using technical calls.
This commit is contained in:
Tammie Lister 2016-12-23 14:48:15 +00:00 committed by GitHub
commit 6e04a5f802
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() {
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' );