From 6de675bd6a3d5e44fe4b868bd090178b8d075cef Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 21 Jul 2012 06:07:39 +0000 Subject: [PATCH] Remove unnecessary error suppression operators from func_get_arg() and func_num_args(). see #21332. git-svn-id: https://develop.svn.wordpress.org/trunk@21298 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 7f0fd23214..2f0b6f0b53 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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, '#' ) )