Permalink
Browse files

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.
2 parents 9700947 + 8e1367b commit 6e04a5f80238afc44b048623b1ccddf5b56513d9 @karmatosed karmatosed committed on GitHub Dec 23, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/extras.php
View
@@ -33,7 +33,7 @@ function _s_body_classes( $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' );

0 comments on commit 6e04a5f

Please sign in to comment.