Changeset 40969 for trunk/src/wp-includes/nav-menu.php
- Timestamp:
- 06/30/2017 04:48:20 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r40942 r40969 13 13 * @since 3.0.0 14 14 * 15 * @param int|string|WP_Term $menu Menu ID, slug, or name - or the menuobject.15 * @param int|string|WP_Term $menu Menu ID, slug, name, or object. 16 16 * @return WP_Term|false False if $menu param isn't supplied or term does not exist, menu object if successful. 17 17 */ … … 44 44 * @since 4.3.0 45 45 * 46 * @param object|false$menu_obj Term from nav_menu taxonomy, or false if nothing had been found.47 * @param string $menu The menu ID, slug, or namepassed to wp_get_nav_menu_object().46 * @param WP_Term|false $menu_obj Term from nav_menu taxonomy, or false if nothing had been found. 47 * @param int|string|WP_Term $menu The menu ID, slug, name, or object passed to wp_get_nav_menu_object(). 48 48 */ 49 49 return apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu ); … … 57 57 * @since 3.0.0 58 58 * 59 * @param int|string $menu The menu to check (ID, slug, or name).59 * @param int|string|WP_Term $menu Menu ID, slug, name, or object of menu to check. 60 60 * @return bool Whether the menu exists. 61 61 */ … … 217 217 * @since 3.0.0 218 218 * 219 * @param string $menu Menu ID, slug, or name.219 * @param int|string|WP_Term $menu Menu ID, slug, name, or object. 220 220 * @return bool|WP_Error True on success, false or WP_Error object on failure. 221 221 */ … … 587 587 * @staticvar array $fetched 588 588 * 589 * @param string $menu Menu name, ID, or slug.590 * @param array $args {589 * @param int|string|WP_Term $menu Menu ID, slug, name, or object. 590 * @param array $args { 591 591 * Optional. Arguments to pass to get_posts(). 592 592 *
Note: See TracChangeset
for help on using the changeset viewer.