Code Modernisation: Remove redundant calls to `func_get_arg()` in `wp-includes/class-wp-admin-bar.php`.
Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46140 git-svn-id: http://core.svn.wordpress.org/trunk@45952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
60f027a378
commit
92ba2cc95d
|
@ -115,8 +115,8 @@ class WP_Admin_Bar {
|
||||||
*/
|
*/
|
||||||
public function add_node( $args ) {
|
public function add_node( $args ) {
|
||||||
// Shim for old method signature: add_node( $parent_id, $menu_obj, $args )
|
// Shim for old method signature: add_node( $parent_id, $menu_obj, $args )
|
||||||
if ( func_num_args() >= 3 && is_string( func_get_arg( 0 ) ) ) {
|
if ( func_num_args() >= 3 && is_string( $args ) ) {
|
||||||
$args = array_merge( array( 'parent' => func_get_arg( 0 ) ), func_get_arg( 2 ) );
|
$args = array_merge( array( 'parent' => $args ), func_get_arg( 2 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_object( $args ) ) {
|
if ( is_object( $args ) ) {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46139';
|
$wp_version = '5.3-alpha-46140';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue