[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
Thu Jul 7 10:35:08 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                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  docs
----------------------------------------+-------------------

Comment (by swissspidy):

 Thanks for the patch @mehulkaklotar, but as stated in the ticket
 description those aren't objects but arrays instead. So not only the type
 is wrong, but also the description.

 The arrays would need to be documented according to our inline
 documentation standards: https://make.wordpress.org/core/handbook/best-
 practices/inline-documentation-standards/php/#1-1-parameters-that-are-
 arrays

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


More information about the wp-trac mailing list