Fixed permission issue when show_ui arg is set to false for attributes.

When show_ui for taxonomies is set to false, the ability to view the
term editing screen is removed.

See https://core.trac.wordpress.org/ticket/33938

Fixes #9223.
This commit is contained in:
Akeda Bagus 2015-09-29 09:11:23 +02:00
parent f7ea1d4c6a
commit 78f3d8a6cb
1 changed files with 4 additions and 1 deletions

View File

@ -184,7 +184,10 @@ class WC_Post_types {
'add_new_item' => sprintf( __( 'Add New %s', 'woocommerce' ), $label ),
'new_item_name' => sprintf( __( 'New %s', 'woocommerce' ), $label )
),
'show_ui' => false,
'show_ui' => true,
'show_in_menu' => false,
'show_in_nav_menus' => false,
'meta_box_cb' => false,
'query_var' => 1 === $tax->attribute_public,
'rewrite' => false,
'sort' => false,