WordPress.org

Make WordPress Core

Opened 8 months ago

Last modified 3 months ago

#25190 new enhancement

Improve name/pagename query variable mapping

Reported by: duck_ Owned by:
Milestone: Future Release 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 (2)

comment:1 nacin7 months ago

Seems sane.

comment:2 wonderboymusic3 months ago

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