From 0432a9f6b50b605457b0ebd7d7ddeb9ab78ba776 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Sep 2019 11:46:44 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php index f7f4468f54..bc96c083dc 100644 --- a/src/wp-includes/class-wp-rewrite.php +++ b/src/wp-includes/class-wp-rewrite.php @@ -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 );