Make WordPress Core

Ticket #56840: 56840.diff

File 56840.diff, 603 bytes (added by SergeyBiryukov, 2 years ago)
  • src/wp-includes/class-wp.php

     
    410410         * @since 2.0.0
    411411         * @since 4.4.0 `X-Pingback` header is added conditionally for single posts that allow pings.
    412412         * @since 6.1.0 Runs after posts have been queried.
     413         *
     414         * @global WP_Query $wp_query WordPress Query object.
    413415         */
    414416        public function send_headers() {
     417                global $wp_query;
     418
    415419                $headers       = array();
    416420                $status        = null;
    417421                $exit_required = false;