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:
parent
11ef3c3ee6
commit
4c44e257b5
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue