From b9e5fa10775b5a74e46e69b964473d1ccf299f85 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 15 Aug 2020 13:10:15 +0000 Subject: [PATCH] Docs: Document the parameters of `wp_get_associated_nav_menu_items()` as optional. See #50768. git-svn-id: https://develop.svn.wordpress.org/trunk@48793 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/nav-menu.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php index 1881b54247..53d4a15d0e 100644 --- a/src/wp-includes/nav-menu.php +++ b/src/wp-includes/nav-menu.php @@ -988,11 +988,12 @@ function wp_setup_nav_menu_item( $menu_item ) { * * @since 3.0.0 * - * @param int $object_id The ID of the original object. - * @param string $object_type The type of object, such as 'taxonomy' or 'post_type'. - * @param string $taxonomy If $object_type is 'taxonomy', $taxonomy is the name of the tax - * that $object_id belongs to. - * @return int[] The array of menu item IDs; empty array if none; + * @param int $object_id Optional. The ID of the original object. Default 0. + * @param string $object_type Optional. The type of object, such as 'post_type' or 'taxonomy'. + * Default 'post_type'. + * @param string $taxonomy Optional. If $object_type is 'taxonomy', $taxonomy is the name + * of the tax that $object_id belongs to. Default empty. + * @return int[] The array of menu item IDs; empty array if none. */ function wp_get_associated_nav_menu_items( $object_id = 0, $object_type = 'post_type', $taxonomy = '' ) { $object_id = (int) $object_id;