Changeset 34442
- Timestamp:
- 09/22/2015 06:46:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r34247 r34442 366 366 */ 367 367 public function send_headers() { 368 $headers = array( 'X-Pingback' => get_bloginfo('pingback_url'));368 $headers = array(); 369 369 $status = null; 370 370 $exit_required = false; … … 596 596 // Never 404 for the admin, robots, or if we found posts. 597 597 if ( is_admin() || is_robots() || $wp_query->posts ) { 598 599 // Only set X-Pingback for single posts. 600 if ( is_single() ) { 601 $p = get_queried_object(); 602 if ( $p && pings_open( $p ) ) { 603 @header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) ); 604 } 605 } 606 598 607 status_header( 200 ); 599 608 return;
Note: See TracChangeset
for help on using the changeset viewer.