Make WordPress Core


Ignore:
Timestamp:
06/30/2017 04:48:20 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Clarify accepted types and values for $menu parameters in several contexts:

  • wp_nav_menu()
  • wp_get_nav_menu_object() and its filter wp_get_nav_menu_object
  • is_nav_menu()
  • wp_delete_nav_menu()
  • wp_get_nav_menu_items()

Props dimadin.
Fixes #38166.

File:
1 edited

Legend:

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

    r40658 r40969  
    2222 *     Optional. Array of nav menu arguments.
    2323 *
    24  *     @type int|string|WP_Term $menu            Desired menu. Accepts (matching in order) id, slug, name, menu object. Default empty.
     24 *     @type int|string|WP_Term $menu            Desired menu. Accepts a menu ID, slug, name, or object. Default empty.
    2525 *     @type string             $menu_class      CSS class to use for the ul element which forms the menu. Default 'menu'.
    2626 *     @type string             $menu_id         The ID that is applied to the ul element which forms the menu.
Note: See TracChangeset for help on using the changeset viewer.