[wp-trac] [WordPress Trac] #16945: Add relative URIs containing a query in esc_url()
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 23 06:37:37 UTC 2011
#16945: Add relative URIs containing a query in esc_url()
-------------------------+------------------------------
Reporter: hakre | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
I'd like to enhance the esc_url function to accept an url starting with ?
(query) to not require a protocol.
That's comparable with the # (fragment) case we already have in.
This is useful to create links to the current page that need a query only.
Otherwise the php file must be added and for frontend pages it won't work
with pretty permalinks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16945>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list