[wp-trac] [WordPress Trac] #30092: Improve the default setting of 'show_in_admin_bar'

WordPress Trac noreply at wordpress.org
Fri Oct 24 17:44:39 UTC 2014


#30092: Improve the default setting of 'show_in_admin_bar'
----------------------------+-----------------------------
 Reporter:  ipm-frommen     |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  admin-bar edit
  Focuses:                  |
----------------------------+-----------------------------
 Currently, the default setting of `show_in_admin_bar` is defined as `true
 === $args->show_in_menu`.

 Suppose, I have the custom post types CPT_A and CPT_B, and I put the menu
 of the latter one below the menu of the former one (`'show_in_menu' =>
 'edit.php?post_type=cpt_a'`).
 Unless I also define `'show_in_admin_bar' => true`, for CPT_B there won't
 be any _Edit post_ node in the admin bar.

 This is, in my opinion, not the desired behavior.
 If the default value for `show_in_admin_bar` were to be set with respect
 to the presence of `show_in_menu` - and not by strict comparison with it -
 the admin bar node in question would be made available automagically.

 Diff is attached.

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


More information about the wp-trac mailing list