[wp-trac] [WordPress Trac] #18274: Add_query_arg doesn't cope with guid in url ie &p= becomes #038; p=
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 29 20:01:55 UTC 2011
#18274: Add_query_arg doesn't cope with guid in url ie &p= becomes #038;p=
--------------------------+------------------------------
Reporter: anmari | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: trivial | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Can't reproduce on 3.3-aortic-dissection.
Here's what I do:
{{{
$link = 'http://localhost/wpbeta/?post_type=event&p=2530';
$link = add_query_arg('eventdate', '20110728T100000', $link );
echo htmlspecialchars($link);
}}}
This results in:
{{{
http://localhost/wpbeta/?post_type=event&p=2530&eventdate=20110728T100000
}}}
I only get what you get if I add `&` to the initial URL:
{{{
$link = 'http://localhost/wpbeta/?post_type=event&p=2530';
$link = add_query_arg('eventdate', '20110728T100000', $link );
echo htmlspecialchars($link);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18274#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list