Use the correct type (integer) for the `$menu_id` parameter in the `wp_get_nav_menu_to_edit()` DocBlock.

Also properly mark the parameter as optional and specify the default value.

Props jaimieolmstead for the initial patch.
Fixes #30540.


git-svn-id: https://develop.svn.wordpress.org/trunk@30627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes (DrewAPicture) 2014-11-30 04:24:25 +00:00
parent 11ef3c3ee6
commit 4c44e257b5
1 changed files with 1 additions and 1 deletions

View File

@ -1148,7 +1148,7 @@ function _wp_nav_menu_meta_box_object( $object = null ) {
*
* @since 3.0.0
*
* @param string $menu_id The ID of the menu to format.
* @param int $menu_id Optional. The ID of the menu to format. Default 0.
* @return string|WP_Error $output The menu formatted to edit or error object on failure.
*/
function wp_get_nav_menu_to_edit( $menu_id = 0 ) {