From 497171a1c8da9e93cac5fbcc75b6f2e3e222dfc9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 5 Mar 2021 11:03:06 +0000 Subject: [PATCH] XML-RPC: Pass an empty array to the `xmlrpc_call` action in methods that have no arguments. This avoids an "Undefined variable" PHP notice in the `::mt_supportedMethods()` and `::mt_supportedTextFilters()` methods. Follow-up to [50353]. Props dd32. Fixes #52524. Built from https://develop.svn.wordpress.org/trunk@50499 git-svn-id: http://core.svn.wordpress.org/trunk@50112 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index dadb82a49f..45908d695a 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -6649,7 +6649,7 @@ class wp_xmlrpc_server extends IXR_Server { */ public function mt_supportedMethods() { /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ - do_action( 'xmlrpc_call', 'mt.supportedMethods', $args, $this ); + do_action( 'xmlrpc_call', 'mt.supportedMethods', array(), $this ); return array_keys( $this->methods ); } @@ -6661,7 +6661,7 @@ class wp_xmlrpc_server extends IXR_Server { */ public function mt_supportedTextFilters() { /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ - do_action( 'xmlrpc_call', 'mt.supportedTextFilters', $args, $this ); + do_action( 'xmlrpc_call', 'mt.supportedTextFilters', array(), $this ); /** * Filters the MoveableType text filters list for XML-RPC. diff --git a/wp-includes/version.php b/wp-includes/version.php index 07ad5ff309..4697d1e5cb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50496'; +$wp_version = '5.8-alpha-50499'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.