[wp-trac] [WordPress Trac] #31935: is_page() erroneously set to true when loading /feed/ associated with 404

WordPress Trac noreply at wordpress.org
Wed Apr 8 21:51:02 UTC 2015


#31935: is_page() erroneously set to true when loading /feed/ associated with 404
-----------------------------+----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Feeds            |    Version:  4.0
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+----------------------------
 r29216 changed feeds to never send a 404 status header. This had the
 unintended consequence of changing the behavior of some internals.

 A request to the feed associated with a missing page (e.g. `/missing-
 page/feed/`) will match the rewrite rule for a page and set `is_page ==
 true`. I'd expect WordPress internals to still understand this request as
 `is_404`

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


More information about the wp-trac mailing list