mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
92ba2cc95d
commit
c32fb1dbee
@ -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 );
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user