[wp-trac] [WordPress Trac] #39899: Integer slugs load parents content

WordPress Trac noreply at wordpress.org
Fri Feb 17 03:15:57 UTC 2017


#39899: Integer slugs load parents content
--------------------------+-----------------------------
 Reporter:  nattaylor     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Given a page with `slug=foo` then requests for `/foo/[0-9]*` load `foo`'s
 content.

 To reproduce, just try this on most Wordpress installs (e.g.
 https://techcrunch.com/contact/8675309/)

 Here is the output from the debug bar

 {{{
 Request:

 services/123

 Query String:

 page=123&pagename=services

 Matched Rewrite Rule:

 (.?.+?)(?:/([0-9]+))?/?$

 Matched Rewrite Query:

 pagename=services&page=123
 }}}

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


More information about the wp-trac mailing list