Unscramble echo to readable printf

Is it OK?
This commit is contained in:
Viktor Szépe 2018-09-22 06:51:58 +02:00 committed by GitHub
parent 9274f322d0
commit 399c891927
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() { function _s_pingback_header() {
if ( is_singular() && pings_open() ) { 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' ); add_action( 'wp_head', '_s_pingback_header' );