[wp-trac] [WordPress Trac] #14698: Adding custom menu items in a WP managed menu

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 3 13:00:34 UTC 2011


#14698: Adding custom menu items in a WP managed menu
-------------------------------+-----------------------
 Reporter:  mackeyn@…          |       Owner:
     Type:  enhancement        |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  Menus              |     Version:  3.0.1
 Severity:  minor              |  Resolution:
 Keywords:  needs-patch        |
-------------------------------+-----------------------

Comment (by wahyuariest):

 // set db_id to negitive value to avoid collisions with posts with the
 same ID
         // This is needed due to the non-strict equality check in
 classes.php
         // line 932 in Walker::walk().  I would love to use a string for
 the
         // term ID's (something like 'term:4'), but "any string" == 0 will
         // always return false.
         $term->db_id = -1*$term->ID;

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


More information about the wp-trac mailing list