mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
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:
parent
569bcc5dad
commit
02757de9d8
@ -693,14 +693,8 @@ function add_query_arg() {
|
||||
}
|
||||
|
||||
if ( strpos( $uri, '?' ) !== false ) {
|
||||
$parts = explode( '?', $uri, 2 );
|
||||
if ( 1 == count( $parts ) ) {
|
||||
$base = '?';
|
||||
$query = $parts[0];
|
||||
} else {
|
||||
$base = $parts[0] . '?';
|
||||
$query = $parts[1];
|
||||
}
|
||||
list( $base, $query ) = explode( '?', $uri, 2 );
|
||||
$base .= '?';
|
||||
} elseif ( $protocol || strpos( $uri, '=' ) === false ) {
|
||||
$base = $uri . '?';
|
||||
$query = '';
|
||||
|
Loading…
Reference in New Issue
Block a user