mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
b6e70baa04
commit
7a154ca666
@ -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' ) );
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user