Changeset 28242
- Timestamp:
- 05/02/2014 11:58:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r27700 r28242 16 16 * @uses get_term_by 17 17 * 18 * @param string $menu Menu id, slug or name18 * @param string $menu Menu ID, slug, or name. 19 19 * @return mixed false if $menu param isn't supplied or term does not exist, menu object if successful. 20 20 */ … … 44 44 * @since 3.0.0 45 45 * 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). 47 47 * @return bool Whether the menu exists. 48 48 */ … … 164 164 * @since 3.0.0 165 165 * 166 * @param string $menu_name Menu Name167 * @return mixed Menu object on success|WP_Error on failure166 * @param string $menu_name Menu name. 167 * @return int|WP_Error Menu ID on success, WP_Error object on failure. 168 168 */ 169 169 function wp_create_nav_menu( $menu_name ) { … … 176 176 * @since 3.0.0 177 177 * 178 * @param string $menu name|id|slug179 * @return mixed Menu object on success|WP_Error on failure178 * @param string $menu Menu ID, slug, or name. 179 * @return bool|WP_Error True on success, false or WP_Error object on failure. 180 180 */ 181 181 function wp_delete_nav_menu( $menu ) { … … 222 222 * @param int $menu_id The ID of the menu or "0" to create a new menu. 223 223 * @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. 225 225 */ 226 226 function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.