[wp-trac] [WordPress Trac] #18274: Add_query_arg doesn't cope with existing query arguments in url
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 28 02:26:53 UTC 2011
#18274: Add_query_arg doesn't cope with existing query arguments in url
--------------------------+-----------------------------
Reporter: anmari | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: normal | Keywords:
--------------------------+-----------------------------
Add_query_arg seems to convert the & relating to any existing query
arguments in the query string to the html ascii - thus breaking the url.
Surely this is not the expected behaviour?
This is happening in WordPress 3.3-aortic-dissection, and in
WordPress 3.2.1
EG:
* the link before add_query_arg
http://localhost/wpbeta/?post_type=event&p=2530
{{{
$link = add_query_arg('eventdate',$eventdate, $link );
}}}
*After add_query arg:
http://localhost/wpbeta/?post_type=event&eventdate=20110728T100000#038;p=2530
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18274>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list