Skip to content
Permalink
Browse files

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.
  • Loading branch information...
gedex authored and mikejolley committed Sep 29, 2015
1 parent 15b4d64 commit 0c4729670a147df76f3098f0f139fd8f74be1146
Showing with 4 additions and 1 deletion.
  1. +4 −1 includes/class-wc-post-types.php
@@ -184,7 +184,10 @@ public static function register_taxonomies() {
'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,

0 comments on commit 0c47296

Please sign in to comment.
You can’t perform that action at this time.