[wp-trac] [WordPress Trac] #32464: Menu args and 'container' => 'false'

WordPress Trac noreply at wordpress.org
Tue Nov 24 22:38:34 UTC 2015


#32464: Menu args and  'container' => 'false'
-----------------------------------+-----------------------------
 Reporter:  ChiefAlchemist         |       Owner:  wonderboymusic
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  4.4
Component:  Menus                  |     Version:  4.2
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |     Focuses:  docs
-----------------------------------+-----------------------------

Comment (by tellyworth):

 Since [34630], the behaviour of  `'container' => ''` has changed.

 Previously it would remove the container. Now it results in a tag with an
 empty element:


 {{{

                                 < class="menu clear-fix">
 }}}


 Note that the empty string param is explicitly given in the docs as an
 example
 http://codex.wordpress.org/Function_Reference/wp_nav_menu#Removing_the_Navigation_Container:

 {{{#!php
 <?php wp_nav_menu( array( 'container' => '' ) ); ?>
 }}}

 I'm not entirely sure what the intention is in this case, but this seems
 like a regression, and the behaviour doesn't match the docs.

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


More information about the wp-trac mailing list