Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#39899 closed defect (bug) (duplicate)

Integer slugs load parents content

Reported by: nattaylor Owned by:
Priority: normal Milestone:
Component: Canonical Version: 4.7.2
Severity: normal Keywords:
Cc: Focuses:

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)

#1 @SergeyBiryukov
10 years ago

  • Component General → Canonical
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Hi @nattaylor, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #28081.

#2 @nattaylor
10 years ago

Ah, thanks @SergeyBiryukov. I was sure I wasn't the only one.

Note: See TracTickets for help on using tickets.