[wp-trac] [WordPress Trac] #30540: Docblock for wp_get_nav_menu_to_edit in /wp-admin/includes/nav-menu.php incorrectly declares $menu_id param as string

WordPress Trac noreply at wordpress.org
Fri Nov 28 16:21:59 UTC 2014


#30540: Docblock for wp_get_nav_menu_to_edit in /wp-admin/includes/nav-menu.php
incorrectly declares $menu_id param as string
--------------------------+-----------------------------
 Reporter:  dustyf        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The $menu_id param in wp_get_nav_menu_to_edit in file, /wp-admin/includes
 /nav-menu.php, should be declared as an int instead of a string.  The
 parameter is declaring an ID of a specific menu that will be edited.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30540>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list