Ticket #4464 (closed defect (bug): fixed)

Opened 5 years ago

Last modified 5 years ago

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

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

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