mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Nav menu location functions relate to nav menu locations, not nav menus.
Fixes #35471. git-svn-id: https://develop.svn.wordpress.org/trunk@36330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,7 +77,7 @@ function is_nav_menu( $menu ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Register navigation menus for a theme.
|
||||
* Register navigation menu locations for a theme.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
@@ -94,7 +94,7 @@ function register_nav_menus( $locations = array() ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters a navigation menu for a theme.
|
||||
* Unregisters a navigation menu location for a theme.
|
||||
*
|
||||
* @global array $_wp_registered_nav_menus
|
||||
*
|
||||
@@ -115,7 +115,7 @@ function unregister_nav_menu( $location ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a navigation menu for a theme.
|
||||
* Register a navigation menu location for a theme.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
@@ -126,7 +126,7 @@ function register_nav_menu( $location, $description ) {
|
||||
register_nav_menus( array( $location => $description ) );
|
||||
}
|
||||
/**
|
||||
* Returns an array of all registered navigation menus in a theme
|
||||
* Returns all registered navigation menu locations in a theme.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user