From 02cf2a731fe9ab1e669e50454c16f52c03c47613 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 28 Sep 2016 19:27:25 +0000 Subject: [PATCH] Pings/Trackbacks: Add filter argument to fetching of pingbacks_url in `X-pingback` header It is possible to delegate pingback processing to a service function outside of WordPress itself. All other calls in default themes (and likely other themes) uses `bloginfo` which automatically adds the filter argument of "display". This adds consistency. Props dshanske. Fixes #34633. git-svn-id: https://develop.svn.wordpress.org/trunk@38671 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php index b4d2e11328..cac538d6cd 100644 --- a/src/wp-includes/class-wp.php +++ b/src/wp-includes/class-wp.php @@ -662,7 +662,7 @@ class WP { // Only set X-Pingback for single posts that allow pings. if ( $p && pings_open( $p ) ) { - @header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) ); + @header( 'X-Pingback: ' . get_bloginfo( 'pingback_url', 'display' ) ); } // check for paged content that exceeds the max number of pages