[wp-trac] [WordPress Trac] #17821: wp_get_nav_menu_object() doesn't check when passing to get_term()

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 17 12:39:41 UTC 2011


#17821: wp_get_nav_menu_object() doesn't check when passing to get_term()
--------------------------+------------------------------
 Reporter:  kawauso       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.1.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by kawauso):

 '''Steps to reproduce:'''

 1. Add a nav menu and find its term ID
 1. Call `wp_get_nav_menu_object()` with a string beginning with that ID
 1. The nav menu will be returned despite the passed string not being a
 valid menu name

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


More information about the wp-trac mailing list