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
This commit is contained in:
Sergey Biryukov 2019-09-15 11:47:54 +00:00
parent 92ba2cc95d
commit c32fb1dbee
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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.