Make WordPress Core

Ticket #35013: 35013.patch

File 35013.patch, 574 bytes (added by igmoweb, 9 years ago)

Patch

  • src/wp-includes/class-wp.php

     
    609609
    610610                        $success = true;
    611611                        if ( is_singular() ) {
    612                                 $p = clone $wp_query->post;
     612
     613                                $p = false;
     614                                if ( is_a( $wp_query->post, 'WP_Post' ) )
     615                                        $p = clone $wp_query->post;
     616
    613617                                // Only set X-Pingback for single posts that allow pings.
    614618                                if ( $p && pings_open( $p ) ) {
    615619                                        @header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) );