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:
nacin 2012-07-21 06:07:39 +00:00
parent fc0ac0c0a9
commit 68c0beb079

View File

@ -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, '#' ) )