WordPress.org

Make WordPress Core

Changeset 21298


Ignore:
Timestamp:
07/21/2012 06:07:39 AM (9 years ago)
Author:
nacin
Message:

Remove unnecessary error suppression operators from func_get_arg() and func_num_args(). see #21332.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r21184 r21298  
    639639    $ret = '';
    640640    if ( is_array( func_get_arg(0) ) ) {
    641         if ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )
     641        if ( func_num_args() < 2 || false === func_get_arg( 1 ) )
    642642            $uri = $_SERVER['REQUEST_URI'];
    643643        else
    644             $uri = @func_get_arg( 1 );
     644            $uri = func_get_arg( 1 );
    645645    } else {
    646         if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
     646        if ( func_num_args() < 3 || false === func_get_arg( 2 ) )
    647647            $uri = $_SERVER['REQUEST_URI'];
    648648        else
    649             $uri = @func_get_arg( 2 );
     649            $uri = func_get_arg( 2 );
    650650    }
    651651
Note: See TracChangeset for help on using the changeset viewer.