WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #43539, comment 9


Ignore:
Timestamp:
03/17/2018 07:08:42 PM (4 years ago)
Author:
satantime
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43539, comment 9

    v2 v3  
    2828and you'll see status 200 but output will be http://stream.localhost/feed/test/feed/test/ - this url is potential url to trigger redirect.
    2929
    30 But there's no redirect because check on original line  532 `if ( !redirect_canonical($redirect_url, false) ) {` returns `http://stream.localhost/feed/test/feed/test/` instead of empty string and that's caused because core WP doesn't handle properly custom feed types in redirect_canonical function and always adds /feed/test/ on top of current url. More info you can find on screenshots from the description of this ticket.
     30But there's no redirect because check on original line  532 `if ( !redirect_canonical($redirect_url, false) ) {` returns `http://stream.localhost/feed/test/feed/test/feed/test/` instead of empty string and that's caused because core WP doesn't handle properly custom feed types in redirect_canonical function and always adds /feed/test/ on top of current url. More info you can find on screenshots from the description of this ticket.