From cc2dd60fe1af40ed0236eb10c4c7b3996e5a6107 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 21 Dec 2020 17:11:05 +0000 Subject: [PATCH] XML-RPC: Fix a type error when requesting the `menu` field of a taxonomy. Fixes #51493 Built from https://develop.svn.wordpress.org/trunk@49856 git-svn-id: http://core.svn.wordpress.org/trunk@49575 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 945d659fb0..0be3318ee7 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -766,7 +766,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( in_array( 'menu', $fields, true ) ) { - $_taxonomy['show_in_menu'] = (bool) $_taxonomy->show_in_menu; + $_taxonomy['show_in_menu'] = (bool) $taxonomy->show_in_menu; } if ( in_array( 'object_type', $fields, true ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index fa50d98502..d3123afa9e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49854'; +$wp_version = '5.7-alpha-49856'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.