#2326 closed defect (bug) (fixed)
add_query_arg incorrectly sets uri with arguments of associative array and no oldquery_or_uri
Reported by: | majelbstoat | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | Administration | Keywords: | add_query_arg uri path bg|has-patch |
Focuses: | Cc: |
Description
Currently, if you call this:
add_query_arg(array('key' => 'val'));
the uri is generated from the non-existant func_get_arg(1) , which always returns an empty string. The patch supplied checks to see if a second argument exists and if it doesn't uses the request uri instead.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Patch to provide proper uri base when calling add_query_arg with an associative array and no existing uri.