From 068ecc915c2b7cca3f5c29fe3a4940b10d7b0be2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Jul 2016 18:00:41 +0000 Subject: [PATCH] Docs: Correct and expand the docs for the `$taxonomy` argument of `wp_nav_menu_item_taxonomy_meta_box()`. Props mehulkaklotar for initial patch. See #37211. git-svn-id: https://develop.svn.wordpress.org/trunk@38128 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/nav-menu.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index 5f312cbd46..b3a57acb39 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -584,7 +584,14 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) { * @global int|string $nav_menu_selected_id * * @param string $object Not used. - * @param string $taxonomy The taxonomy object. + * @param array $taxonomy { + * Data that will be used as arguments of the taxonomy meta box. + * + * @type string $id Meta box ID (used in the 'id' attribute for the meta box). + * @type string $title Title of the meta box. + * @type string $callback Function that fills the box with the desired content. + * @type object $args The current taxonomy object for this menu item meta box. + * } */ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) { global $nav_menu_selected_id;