Make WordPress Core

Changeset 28242


Ignore:
Timestamp:
05/02/2014 11:58:51 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Correct @return value for wp_create_nav_menu() and wp_delete_nav_menu().

props Tmeister.
fixes #27745.

File:
1 edited

Legend:

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

    r27700 r28242  
    1616 * @uses get_term_by
    1717 *
    18  * @param string $menu Menu id, slug or name
     18 * @param string $menu Menu ID, slug, or name.
    1919 * @return mixed false if $menu param isn't supplied or term does not exist, menu object if successful.
    2020 */
     
    4444 * @since 3.0.0
    4545 *
    46  * @param int|string $menu The menu to check (id, slug, or name)
     46 * @param int|string $menu The menu to check (ID, slug, or name).
    4747 * @return bool Whether the menu exists.
    4848 */
     
    164164 * @since 3.0.0
    165165 *
    166  * @param string $menu_name Menu Name
    167  * @return mixed Menu object on success|WP_Error on failure
     166 * @param string $menu_name Menu name.
     167 * @return int|WP_Error Menu ID on success, WP_Error object on failure.
    168168 */
    169169function wp_create_nav_menu( $menu_name ) {
     
    176176 * @since 3.0.0
    177177 *
    178  * @param string $menu name|id|slug
    179  * @return mixed Menu object on success|WP_Error on failure
     178 * @param string $menu Menu ID, slug, or name.
     179 * @return bool|WP_Error True on success, false or WP_Error object on failure.
    180180 */
    181181function wp_delete_nav_menu( $menu ) {
     
    222222 * @param int $menu_id The ID of the menu or "0" to create a new menu.
    223223 * @param array $menu_data The array of menu data.
    224  * @return int|WP_Error object The menu's ID or WP_Error object.
     224 * @return int|WP_Error Menu ID on success, WP_Error object on failure.
    225225 */
    226226function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) {
Note: See TracChangeset for help on using the changeset viewer.