[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
Mon Jul 18 15:47:03 UTC 2016


#37211: Incorrect docs for second param of
`wp_nav_menu_item_(taxonomy|post_type)_meta_box()`
-------------------------------------------------+-------------------------
 Reporter:  ocean90                              |       Owner:
     Type:  defect (bug)                         |  mehulkaklotar
 Priority:  normal                               |      Status:  assigned
Component:  Menus                                |   Milestone:  4.6
 Severity:  normal                               |     Version:  3.0
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  refresh                                        |     Focuses:  docs
-------------------------------------------------+-------------------------
Changes (by ocean90):

 * keywords:  good-first-bug has-patch => good-first-bug has-patch needs-
     refresh


Comment:

 @mehulkaklotar Thanks for your patch. Some feedback:

 * Each line should end with a period.
 * "A id" should be "An ID".
 * `$args` is not an array, it's an object for
 `wp_nav_menu_item_taxonomy_meta_box()` and `WP_Post_Type` for
 `wp_nav_menu_item_post_type_meta_box()`.
 * "An array of post type arguments" should be replaced with something
 else. I think we can use something similar to the one we're using for
 `$callback_args` from
 https://developer.wordpress.org/reference/functions/add_meta_box/.

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


More information about the wp-trac mailing list