Make WordPress Core

Changeset 30627


Ignore:
Timestamp:
11/30/2014 04:24:25 AM (10 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

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

    r30105 r30627  
    11491149 * @since 3.0.0
    11501150 *
    1151  * @param string $menu_id The ID of the menu to format.
     1151 * @param int $menu_id Optional. The ID of the menu to format. Default 0.
    11521152 * @return string|WP_Error $output The menu formatted to edit or error object on failure.
    11531153 */
Note: See TracChangeset for help on using the changeset viewer.