[wp-trac] [WordPress Trac] #27735: unregister_nav_menu leaves menu visible after it has been set

WordPress Trac noreply at wordpress.org
Thu Jun 26 00:56:09 UTC 2014


#27735: unregister_nav_menu leaves menu visible after it has been set
--------------------------+-----------------------------
 Reporter:  mbootsman     |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.0
Component:  Menus         |     Version:  3.8.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28836"]:
 {{{
 #!CommitTicketReference repository="" revision="28836"
 `return false` in `has_nav_menu()` if the `$location` does not exist in
 the `$_wp_registered_nav_menus` global.

 Props SergeyBiryukov.
 Fixes #27735.
 }}}

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


More information about the wp-trac mailing list