mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
PINGBACKS: After [34442], switch to is_singular() to check attachments and pages as well.
See #20226. git-svn-id: https://develop.svn.wordpress.org/trunk@34443 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -597,7 +597,7 @@ class WP {
|
||||
if ( is_admin() || is_robots() || $wp_query->posts ) {
|
||||
|
||||
// Only set X-Pingback for single posts.
|
||||
if ( is_single() ) {
|
||||
if ( is_singular() ) {
|
||||
$p = get_queried_object();
|
||||
if ( $p && pings_open( $p ) ) {
|
||||
@header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) );
|
||||
|
||||
Reference in New Issue
Block a user