[wp-trac] [WordPress Trac] #33938: Taxonomies with show_ui set to false should not be accessible via the admin area

WordPress Trac noreply at wordpress.org
Mon Sep 21 19:08:17 UTC 2015


#33938: Taxonomies with show_ui set to false should not be accessible via the admin
area
--------------------------+-----------------------------
 Reporter:  johnbillion   |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  Taxonomy      |     Version:  2.3
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  administration
--------------------------+-----------------------------
Changes (by danielbachhuber):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 Replying to [comment:3 helen]:
 > Replying to [comment:2 danielbachhuber]:
 > > We're hiding UI to add our own custom metabox (combining multiple
 taxonomies) and admin menu. However, `register_taxonomy()` doesn't offer a
 registration argument to disable core meta boxes. It would be nice to have
 the argument, so we don't have to deregister metaboxes.
 >
 > `register_taxonomy()` has a `meta_box_cb` arg, which can be set to
 `false`.

 Ah. I tried `__return_false`, but ended up with an empty meta box.
 Explicitly setting to `false` does the trick.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33938#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list