From 3168f799c9013d194d723c72dd88ce5052bb64f2 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Sat, 25 Oct 2014 13:42:57 +0000 Subject: [PATCH] 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 --- src/wp-includes/nav-menu.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php index 9e6edb554b..12aa14be6d 100644 --- a/src/wp-includes/nav-menu.php +++ b/src/wp-includes/nav-menu.php @@ -81,8 +81,7 @@ function register_nav_menus( $locations = array() ) { /** * 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. */ function unregister_nav_menu( $location ) {