mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Introduce show_in_menu for register_taxonomy.
Accepts boolean: true to show, false to hide. If not set, the default is inherited from show_ui. fixes #20930. git-svn-id: https://develop.svn.wordpress.org/trunk@25133 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -547,6 +547,9 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
if ( in_array( 'cap', $fields ) )
|
||||
$_taxonomy['cap'] = (array) $taxonomy->cap;
|
||||
|
||||
if ( in_array( 'menu', $fields ) )
|
||||
$_taxonomy['show_in_menu'] = (bool) $_taxonomy->show_in_menu;
|
||||
|
||||
if ( in_array( 'object_type', $fields ) )
|
||||
$_taxonomy['object_type'] = array_unique( (array) $taxonomy->object_type );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user