From 58e390d1ac59de5b781fbd48ef6f610adeaca9b5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Jul 2016 19:20:50 +0000 Subject: [PATCH] Menus: In `wp_nav_menu_item_taxonomy_meta_box()`: * Rename the `$taxonomy` parameter to `$box` for clarity and consistency with other meta box functions. * Make the docs more consistent with `post_categories_meta_box()` and other meta box functions. See #37211. git-svn-id: https://develop.svn.wordpress.org/trunk@38130 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/nav-menu.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index 5d3413aa42..aa5636ba95 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -584,18 +584,18 @@ function wp_nav_menu_item_post_type_meta_box( $object, $box ) { * @global int|string $nav_menu_selected_id * * @param string $object Not used. - * @param array $taxonomy { + * @param array $box { * 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. + * @type string $title Meta box title. + * @type string $callback Meta box display callback. + * @type object $args Extra meta box arguments (the taxonomy object for this meta box). * } */ -function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) { +function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) { global $nav_menu_selected_id; - $taxonomy_name = $taxonomy['args']->name; + $taxonomy_name = $box['args']->name; // Paginate browsing for large numbers of objects. $per_page = 50;