PINGBACKS: After [34442], switch to is_singular() to check attachments and pages as well.

See #20226.

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


git-svn-id: http://core.svn.wordpress.org/trunk@34407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-22 19:10:29 +00:00
parent 3bbd53c717
commit 4cdd0b1688
2 changed files with 2 additions and 2 deletions

View File

@ -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' ) );

View File

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