mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 17:42:26 +01:00
Fix the $location
parameter type in the unregister_nav_menu()
DocBlock.
`$location` is a string, not an array. Props ipm-frommen. Fixes #30098. git-svn-id: https://develop.svn.wordpress.org/trunk@30019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c61e074530
commit
3168f799c9
@ -81,8 +81,7 @@ function register_nav_menus( $locations = array() ) {
|
|||||||
/**
|
/**
|
||||||
* Unregisters a navigation menu for a theme.
|
* Unregisters a navigation menu for a theme.
|
||||||
*
|
*
|
||||||
* @param array $location the menu location identifier
|
* @param string $location The menu location identifier.
|
||||||
*
|
|
||||||
* @return bool True on success, false on failure.
|
* @return bool True on success, false on failure.
|
||||||
*/
|
*/
|
||||||
function unregister_nav_menu( $location ) {
|
function unregister_nav_menu( $location ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user