From 649382a7f16c589ae1d8e6ad07d80b09e9fb078f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 13 Oct 2015 01:45:25 +0000 Subject: [PATCH] Widgets: Rename the `$name` parameter in `is_registered_sidebar()` to `$sidebar_id` and adjust the accepted types to `string|int` as sidebar IDs can be numeric. See #24878. Built from https://develop.svn.wordpress.org/trunk@35104 git-svn-id: http://core.svn.wordpress.org/trunk@35069 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/widget-functions.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 407b98768b..dbee3f418b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35103'; +$wp_version = '4.4-alpha-35104'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widget-functions.php b/wp-includes/widget-functions.php index 79c26c242f..8c9b568935 100644 --- a/wp-includes/widget-functions.php +++ b/wp-includes/widget-functions.php @@ -213,13 +213,13 @@ function unregister_sidebar( $name ) { * * @global array $wp_registered_sidebars Registered sidebars. * - * @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. * @return bool True if the sidebar is registered, false otherwise. */ -function is_registered_sidebar( $name ) { +function is_registered_sidebar( $sidebar_id ) { global $wp_registered_sidebars; - return isset( $wp_registered_sidebars[ $name ] ); + + return isset( $wp_registered_sidebars[ $sidebar_id ] ); } /**