WordPress.org

Make WordPress Core

Changeset 38130


Ignore:
Timestamp:
07/21/2016 07:20:50 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r38129 r38130  
    585585 *
    586586 * @param string $object Not used.
    587  * @param array  $taxonomy {
     587 * @param array  $box {
    588588 *     Data that will be used as arguments of the taxonomy meta box.
    589589 *
    590590 *     @type string $id       Meta box ID (used in the 'id' attribute for the meta box).
    591  *     @type string $title    Title of the meta box.
    592  *     @type string $callback Function that fills the box with the desired content.
    593  *     @type object $args     The current taxonomy object for this menu item meta box.
     591 *     @type string $title    Meta box title.
     592 *     @type string $callback Meta box display callback.
     593 *     @type object $args     Extra meta box arguments (the taxonomy object for this meta box).
    594594 * }
    595595 */
    596 function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) {
     596function wp_nav_menu_item_taxonomy_meta_box( $object, $box ) {
    597597    global $nav_menu_selected_id;
    598     $taxonomy_name = $taxonomy['args']->name;
     598    $taxonomy_name = $box['args']->name;
    599599
    600600    // Paginate browsing for large numbers of objects.
Note: See TracChangeset for help on using the changeset viewer.