[wp-trac] [WordPress Trac] #36411: Missing admin menu for custom taxonomy

WordPress Trac noreply at wordpress.org
Mon Apr 4 16:38:02 UTC 2016


#36411: Missing admin menu for custom taxonomy
--------------------------+-----------------------------
 Reporter:  jadpm         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I found an edge case that can cause that a user with the right
 capabilities becomes unable to manage terms on a custom taxonomy.

 The scenario includes:
 * A user with an editor role.
 * A custom post type with a set of custom capabilities that the current
 editor can not match.
 * A custom taxonomy assigned to that custom post types with default
 capabilities, so editors can manage it.

 Under those premises, the admin menu for the taxonomy is not generated.
 Note that you can access the admin page to manage terms on that custom
 taxonomy if you access the URL manually.

 If you then register a second custom taxonomy, also assigned to the same
 custom post type and with default capabilities (so an editor can manage
 it), then a custom admin menu is generated, wit the custom post type
 label, and granting access to admin pages to manage both taxonomies terms.

 I am attaching a minimum test case that does register the three objects,
 and includes comments as to how to test it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36411>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list