[wp-trac] [WordPress Trac] #28508: Turning on RSS feed should not return 404 page not found if no posts

WordPress Trac noreply at wordpress.org
Thu Jul 17 22:04:14 UTC 2014


#28508: Turning on RSS feed should not return 404 page not found if no posts
--------------------------+------------------------
 Reporter:  bretterer     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Feeds         |     Version:  3.9.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by Eric3D):

 I confirm that the #18505 patch works.

 Since the file changed significantly since the patch was written, the
 place to add ''is_feed()'' in WP 3.9.1 is line 563 in class-wp.php:
 {{{
                 // Never 404 for the admin, robots, or if we found posts.
                 if ( is_admin() || is_robots() || $wp_query->posts ||
 is_feed() ) {
                         status_header( 200 );
                         return;
                 }
 }}}
 Any reason why this hasn't made it to the core after 3 years?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28508#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list