WordPress.org

Make WordPress Core

Changeset 34443


Ignore:
Timestamp:
09/22/2015 07:09:28 PM (6 years ago)
Author:
wonderboymusic
Message:

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

See #20226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r34442 r34443  
    598598
    599599            // Only set X-Pingback for single posts.
    600             if ( is_single() ) {
     600            if ( is_singular() ) {
    601601                $p = get_queried_object();
    602602                if ( $p && pings_open( $p ) ) {
Note: See TracChangeset for help on using the changeset viewer.