[wp-trac] [WordPress Trac] #40178: Menus that contain post types in Draft status should be hidden from logged out users

WordPress Trac noreply at wordpress.org
Sun Mar 19 19:48:43 UTC 2017


#40178: Menus that contain post types in Draft status should be hidden from logged
out users
-------------------------------------------------+-------------------------
 Reporter:  jdingman                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  General                              |  Review
 Severity:  normal                               |     Version:  4.7.3
 Keywords:  has-patch 2nd-opinion needs-testing  |  Resolution:
                                                 |     Focuses:  ui,
                                                 |  administration
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  has-patch => has-patch 2nd-opinion needs-testing


Comment:

 I think that it would be better not to declare draft content in the menu
 as "invalid".

 I added a new patch that shows draft items as orange with a new warning.
 They are then filtered out the same way as invalid items, but with a new
 filter function checking that the content is published.

 Customizer support for this approach needs to be added.

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


More information about the wp-trac mailing list