[wp-trac] [WordPress Trac] #41081: Improve Custom Menu widget, show notification if menu is empty or no menu selected
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Jun 19 02:27:37 UTC 2017
    
    
  
#41081: Improve Custom Menu widget, show notification if menu is empty or no menu
selected
----------------------------------------+------------------------------
 Reporter:  alexvorn2                   |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Widgets                     |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  administration
----------------------------------------+------------------------------
Changes (by welcher):
 * keywords:   => needs-patch good-first-bug
 * focuses:   => administration
Comment:
 @alexvorn2 thanks for reporting!
 If you're meaning that the widget should output the message to visitors of
 the site, I don't think that is the best user experience. The author will
 still have to view the site to see that there is an issue with the widget
 so we're not much further ahead.
 It's pretty clear in the widget admin when a menu is not selected but
 there is no indication whether the menu selected is empty. It might be a
 good idea to change the `wp_get_nav_menus()` call in the `form()` method
 of the widget to exclude empty menus with `'hide_empty' => true`. This
 will exclude any empty menus from the list so that they cannot be
 selected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41081#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list