From c32fb1dbeef5b796fe423e46325bf1f708e4fdbc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Sep 2019 11:47:54 +0000 Subject: [PATCH] Code Modernisation: Remove redundant call to `func_get_arg()` in `wp-includes/class-wp-rewrite.php`. Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46141 git-svn-id: http://core.svn.wordpress.org/trunk@45953 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-rewrite.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-rewrite.php b/wp-includes/class-wp-rewrite.php index f7f4468f54..bc96c083dc 100644 --- a/wp-includes/class-wp-rewrite.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f03dcc7e79..b4203b2413 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46140'; +$wp_version = '5.3-alpha-46141'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.