mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 06:10:09 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@34476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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' ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user