[wp-trac] Re: [WordPress Trac] #4084: add_query_arg urldecodes
passed values but doesn't re-encode them.
WordPress Trac
wp-trac at lists.automattic.com
Sat May 12 07:15:37 GMT 2007
#4084: add_query_arg urldecodes passed values but doesn't re-encode them.
-----------------------+----------------------------------------------------
Reporter: mdawaffe | Owner: rob1n
Type: defect | Status: closed
Priority: low | Milestone: 2.2
Component: General | Version: 2.2
Severity: normal | Resolution: fixed
Keywords: has-patch |
-----------------------+----------------------------------------------------
Comment (by majelbstoat):
Just so you're aware, this did break another useful function of
add_query_arg, which was in easily adding arguments to param style
arguments, like for wp_list_pages(). I was using it, for example, to
quickly append rewrite rule query entries. So, for those who were doing a
similar thing and specifically didn't want things urlencoding, the
workaround is to rawurlencode the argument you pass to add_query_arg and
then urldecode the whole result.
--
Ticket URL: <http://trac.wordpress.org/ticket/4084#comment:13>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list