[wp-trac] [WordPress Trac] #39157: Feed returns 404 when there are no posts

WordPress Trac noreply at wordpress.org
Wed Dec 7 18:55:58 UTC 2016


#39157: Feed returns 404 when there are no posts
--------------------------+-----------------------------
 Reporter:  pavelevap     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Probably result of #30210.

 In WP 4.6.1 website without posts returned empty feed.

 In WP 4.7 there is only 404 response and message: `ERROR: This is not a
 valid feed.`

 And another side effect: When using `add_feed()` to adding own function
 then it worked in WP 4.6.1 by default because `$wp_query` contains by
 default 10 latest posts and even if there were no posts, callback function
 was processed. But now there is check for `$wp_query->have_posts()` (see
 [38929]) and so after update to WP 4.7 all these functions stopped working
 :-( Probably some plugins will be affected by this behaviour...

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39157>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list