Make WordPress Core


Ignore:
Timestamp:
08/26/2013 10:34:56 PM (12 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r24917 r25133  
    548548            $_taxonomy['cap'] = (array) $taxonomy->cap;
    549549
     550        if ( in_array( 'menu', $fields ) )
     551            $_taxonomy['show_in_menu'] = (bool) $_taxonomy->show_in_menu;
     552
    550553        if ( in_array( 'object_type', $fields ) )
    551554            $_taxonomy['object_type'] = array_unique( (array) $taxonomy->object_type );
Note: See TracChangeset for help on using the changeset viewer.