[wp-trac] [WordPress Trac] #40082: Pretty links for users when searching
WordPress Trac
noreply at wordpress.org
Tue Aug 14 09:50:45 UTC 2018
#40082: Pretty links for users when searching
--------------------------+------------------------------
Reporter: henry.wright | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by Cybr):
`get_search_link()` already returns the pretty URL:
https://developer.wordpress.org/reference/functions/get_search_link/
I still don't know why `is_search()` has been hardcoded as an exclusion in
`redirect_canonical()`. I'd love to hear an explanation from the Core
team.
I consider this inconsistent behavior with `WP_Rewrite`'s rules.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40082#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list