mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user