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
This commit is contained in:
Aaron Jorbin 2016-09-28 19:27:25 +00:00
parent 9e028d2fd9
commit 02cf2a731f

View File

@ -662,7 +662,7 @@ class WP {
// Only set X-Pingback for single posts that allow pings. // Only set X-Pingback for single posts that allow pings.
if ( $p && pings_open( $p ) ) { 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 // check for paged content that exceeds the max number of pages