Remove dead code in `add_query_arg()`.

Props hakre, c3mdigital.
Fixes #16942.


Built from https://develop.svn.wordpress.org/trunk@25333


git-svn-id: http://core.svn.wordpress.org/trunk@25295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2013-09-10 23:38:09 +00:00
parent 569bcc5dad
commit 02757de9d8
1 changed files with 2 additions and 8 deletions

View File

@ -693,14 +693,8 @@ function add_query_arg() {
} }
if ( strpos( $uri, '?' ) !== false ) { if ( strpos( $uri, '?' ) !== false ) {
$parts = explode( '?', $uri, 2 ); list( $base, $query ) = explode( '?', $uri, 2 );
if ( 1 == count( $parts ) ) { $base .= '?';
$base = '?';
$query = $parts[0];
} else {
$base = $parts[0] . '?';
$query = $parts[1];
}
} elseif ( $protocol || strpos( $uri, '=' ) === false ) { } elseif ( $protocol || strpos( $uri, '=' ) === false ) {
$base = $uri . '?'; $base = $uri . '?';
$query = ''; $query = '';