Make WordPress Core

Ticket #13049: 13049-v2.patch

File 13049-v2.patch, 553 bytes (added by solarissmoke, 13 years ago)

Do no preserve is_feed for 404 pages

  • wp/wp-includes/query.php

     
    15001500        }
    15011501
    15021502        /**
    1503          * Sets the 404 property and saves whether query is feed.
     1503         * Sets the 404 property and resets all other properties
    15041504         *
    15051505         * @since 2.0.0
    15061506         * @access public
    15071507         */
    15081508        function set_404() {
    1509                 $is_feed = $this->is_feed;
    1510 
    15111509                $this->init_query_flags();
    15121510                $this->is_404 = true;
    1513 
    1514                 $this->is_feed = $is_feed;
    15151511        }
    15161512
    15171513        /**