#39899 closed defect (bug) (duplicate)
Integer slugs load parents content
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.7.2 |
| Component: | Canonical | Keywords: | |
| Focuses: | Cc: |
Description
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
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi @nattaylor, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #28081.