diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index 30c1fce53d..1abadfb186 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -281,12 +281,12 @@ function register_sidebar($args = array()) { * * @global array $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID. * - * @param string $name The ID of the sidebar when it was added. + * @param string|int $sidebar_id The ID of the sidebar when it was registered. */ -function unregister_sidebar( $name ) { +function unregister_sidebar( $sidebar_id ) { global $wp_registered_sidebars; - unset( $wp_registered_sidebars[ $name ] ); + unset( $wp_registered_sidebars[ $sidebar_id ] ); } /**