[wp-trac] [WordPress Trac] #43539: Custom feed types breaks redirect_canonical behavior

WordPress Trac noreply at wordpress.org
Tue Mar 13 15:54:48 UTC 2018


#43539: Custom feed types breaks redirect_canonical behavior
--------------------------+-----------------------------
 Reporter:  satantime     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:  4.9.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi.

 There's plugin "fb-instant-articles" which adds "instant-articles" feed
 type for facebook.
 final url looks like http://localhost/feed/instant-articles.
 But because "redirect_canonical" doesn't respect custom feed types it
 triggers 301 redirect to http://localhost/feed/instant-articles/feed
 /instant-articles/.

 "instant-articles" is registered with $wp_rewrite->feeds but this property
 isn't respected in "redirect_canonical" method: http://take.ms/kq0zJ
 http://take.ms/cbRPm
 We need there to support custom types too like that for example:
 http://take.ms/ljija

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


More information about the wp-trac mailing list