Make WordPress Core

Opened 11 years ago

Last modified 5 years ago

#25190 new enhancement

Improve name/pagename query variable mapping

Reported by: duck_'s profile duck_ Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Query Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

WP_Query performs some mappings from custom query variables to pagename and name for custom post types. This could be improved so that pagename is not used for hierarchical post types when a top-level item has been requested. We could also do some mappings between pagename and name in case the incorrect query variable was used (see #16323).

Change History (3)

#1 @nacin
11 years ago

Seems sane.

#2 @wonderboymusic
11 years ago

  • Keywords needs-patch needs-unit-tests added
Note: See TracTickets for help on using tickets.