Remove unnecessary error suppression operators from func_get_arg() and func_num_args(). see #21332.
git-svn-id: http://core.svn.wordpress.org/trunk@21298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc0ac0c0a9
commit
68c0beb079
|
@ -638,15 +638,15 @@ function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=t
|
|||
function add_query_arg() {
|
||||
$ret = '';
|
||||
if ( is_array( func_get_arg(0) ) ) {
|
||||
if ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )
|
||||
if ( func_num_args() < 2 || false === func_get_arg( 1 ) )
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
else
|
||||
$uri = @func_get_arg( 1 );
|
||||
$uri = func_get_arg( 1 );
|
||||
} else {
|
||||
if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
|
||||
if ( func_num_args() < 3 || false === func_get_arg( 2 ) )
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
else
|
||||
$uri = @func_get_arg( 2 );
|
||||
$uri = func_get_arg( 2 );
|
||||
}
|
||||
|
||||
if ( $frag = strstr( $uri, '#' ) )
|
||||
|
|
Loading…
Reference in New Issue