From 4cdd0b1688795785183d9dc42d99c9cc0875c5ea Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 22 Sep 2015 19:10:29 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index 44482dee0d..625dd8bdd2 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -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' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b7b9e904c..1d5b24dcff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.