[wp-trac] [WordPress Trac] #57858: If permalink structure is set to /%category%/%postname% , WordPress will match a /0/ path as a category archive

WordPress Trac noreply at wordpress.org
Sun Mar 12 08:30:39 UTC 2023


#57858: If permalink structure is set to /%category%/%postname% , WordPress will
match a /0/ path as a category archive
-------------------------------------------------+-------------------------
 Reporter:  krdevio                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Rewrite Rules                        |     Version:  6.1.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info needs-testing       |     Focuses:
  needs-patch                                    |
-------------------------------------------------+-------------------------
Changes (by kalpeshh):

 * keywords:  has-testing-info needs-testing => has-testing-info needs-
     testing needs-patch


Comment:

 The issue is happening because of REGEX match if you have `.htm` or
 `anything starting with dot (.)` at the end of permalink.

 Seems like a valid issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57858#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list