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
This commit is contained in:
John Blackbourn 2020-12-21 17:11:05 +00:00
parent 55209a7309
commit cc2dd60fe1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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