[wp-trac] [WordPress Trac] #25122: First nav menu automatically adds all pages (including sub pages) but doesn't preserve page hierarchy

WordPress Trac noreply at wordpress.org
Fri Aug 23 23:42:27 UTC 2013


#25122: First nav menu automatically adds all pages (including sub pages) but
doesn't preserve page hierarchy
------------------------------+------------------
 Reporter:  jamescollins      |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.7
Component:  Menus             |     Version:  3.6
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by jamescollins):

 {{{25122.2.diff​}}} now uses a slightly less fragile selector:

 {{{#pagechecklist > li > label > input[type="checkbox"]}}}

 The child selector seems to be the easiest way to only select the top
 level pages, however I'm open to suggestions if anyone can think of a
 better way of achieving the same thing.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25122#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list