WordPress.org

Make WordPress Core

Changes between Version 5 and Version 6 of Ticket #44039, comment 2


Ignore:
Timestamp:
05/10/2018 07:33:26 PM (2 years ago)
Author:
swedish boy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44039, comment 2

    v5 v6  
    55(I'm sorry that my example did not use an attachment, but the rewrite rules that's the problem is the same `[^/]+/([^/]+)/?$`)
    66
    7 If the first part `[^/]+` would match to a post the second should never be matched to another one and redirect I think. That's my point which I didn't clearly put. :)
     7If the first part `[^/]+` would match to a post the second should never be matched to another thing unless it's a valid hit for an attachment in this case. That's my point which I didn't clearly put. :)