[wp-trac] [WordPress Trac] #37211: Incorrect docs for second param of `wp_nav_menu_item_(taxonomy|post_type)_meta_box()`

WordPress Trac noreply at wordpress.org
Tue Jun 28 14:14:48 UTC 2016


#37211: Incorrect docs for second param of
`wp_nav_menu_item_(taxonomy|post_type)_meta_box()`
--------------------------+----------------------------------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.6
Component:  Menus         |    Version:  3.0
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:  docs          |
--------------------------+----------------------------------------
 This is about `wp_nav_menu_item_post_type_meta_box()` and
 `wp_nav_menu_item_taxonomy_meta_box()`.

 The DocBlock of both both functions declare the second param as `string`
 and post type/taxonomy object, but it's an array with four keys:

 * https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/template.php?annotate=blame&marks=974&rev=37737#L966
 * https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes
 /ajax-actions.php?annotate=blame&marks=1472-1477&rev=37779#L1443.

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


More information about the wp-trac mailing list