Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#4464 closed defect (bug) (fixed)

leading "?" removed from query strings passed through add_query_arg()

Reported by: markjaquith Owned by: anonymous
Priority: normal Milestone: 2.2.1
Component: General Version: 2.2
Severity: normal Keywords:
Cc:

Description

example:

$test = '?s=test&paged=2';
$test = remove_query_arg('paged', $test);
echo $test;

expected result:

?s=test

actual result:

s=test

Change History (2)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5703]) only strip question marks from the RIGHT side of the query string. fixes #4464. see #4462

(In [5704]) only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk

Note: See TracTickets for help on using tickets.