From 232be98c0eb7994fedd73cad4450d04ba6947b44 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 28 Sep 2016 19:28:30 +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. Built from https://develop.svn.wordpress.org/trunk@38671 git-svn-id: http://core.svn.wordpress.org/trunk@38614 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index b4d2e11328..cac538d6cd 100644 --- a/wp-includes/class-wp.php +++ b/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 diff --git a/wp-includes/version.php b/wp-includes/version.php index 2a048eea7a..b95c7e6e40 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38670'; +$wp_version = '4.7-alpha-38671'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.