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:
parent
55209a7309
commit
cc2dd60fe1
|
@ -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 ) ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue