WP: after [34443], calling get_queried_object() messes up unit tests. We can just clone the $post prop and call it a day.

Fixes #20226.

Built from https://develop.svn.wordpress.org/trunk@34476


git-svn-id: http://core.svn.wordpress.org/trunk@34440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-24 03:54:24 +00:00
parent b6e70baa04
commit 7a154ca666
2 changed files with 2 additions and 2 deletions

View File

@ -598,7 +598,7 @@ class WP {
// Only set X-Pingback for single posts.
if ( is_singular() ) {
$p = get_queried_object();
$p = clone $wp_query->post;
if ( $p && pings_open( $p ) ) {
@header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) );
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34475';
$wp_version = '4.4-alpha-34476';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.