Make WordPress Core

Ticket #27745: 27745.diff

File 27745.diff, 548 bytes (added by Tmeister, 11 years ago)

Change the return value in the phpdoc block

  • src/wp-includes/nav-menu.php

    diff --git src/wp-includes/nav-menu.php src/wp-includes/nav-menu.php
    index 46a6b2b..1dba3e9 100644
    function is_nav_menu_item( $menu_item_id = 0 ) { 
    164164 * @since 3.0.0
    165165 *
    166166 * @param string $menu_name Menu Name
    167  * @return mixed Menu object on success|WP_Error on failure
     167 * @return int|WP_Error object The menu's ID or WP_Error object.
    168168 */
    169169function wp_create_nav_menu( $menu_name ) {
    170170        return wp_update_nav_menu_object( 0, array( 'menu-name' => $menu_name ) );