WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#4464 closed defect (bug) (fixed)

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

Reported by: markjaquith Owned by:
Milestone: 2.2.1 Priority: normal
Severity: normal Version: 2.2
Component: General Keywords:
Focuses: 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)

#1 @markjaquith
13 years ago

  • 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

#2 @markjaquith
13 years ago

(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.