mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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:
parent
3bbd53c717
commit
4cdd0b1688
@ -597,7 +597,7 @@ class WP {
|
|||||||
if ( is_admin() || is_robots() || $wp_query->posts ) {
|
if ( is_admin() || is_robots() || $wp_query->posts ) {
|
||||||
|
|
||||||
// Only set X-Pingback for single posts.
|
// Only set X-Pingback for single posts.
|
||||||
if ( is_single() ) {
|
if ( is_singular() ) {
|
||||||
$p = get_queried_object();
|
$p = get_queried_object();
|
||||||
if ( $p && pings_open( $p ) ) {
|
if ( $p && pings_open( $p ) ) {
|
||||||
@header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) );
|
@header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user