Code Modernisation: Remove redundant call to func_get_arg()
in wp-includes/class-wp-rewrite.php
.
Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0521e61398
commit
0432a9f6b5
@ -1684,7 +1684,7 @@ class WP_Rewrite {
|
||||
global $wp;
|
||||
|
||||
// For backward compatibility, if null has explicitly been passed as `$query_var`, assume `true`.
|
||||
if ( true === $query_var || null === func_get_arg( 2 ) ) {
|
||||
if ( true === $query_var || null === $query_var ) {
|
||||
$query_var = $name;
|
||||
}
|
||||
$this->endpoints[] = array( $places, $name, $query_var );
|
||||
|
Loading…
Reference in New Issue
Block a user