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
This commit is contained in:
Sergey Biryukov 2016-07-21 19:20:50 +00:00
parent 48f6fddb49
commit 58e390d1ac

View File

@ -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;