Merge pull request #1320 from szepeviktor/patch-2

Unscramble echo to readable printf
This commit is contained in:
Ulrich Pogson 2018-11-11 17:15:17 +01:00 committed by GitHub
commit c0bea3ea0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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