Subject: [wp-svn] [39892]
trunk/src/wp-includes/widgets.php: Widgets: In
`unregister_sidebar ()`, rename the `name`
parameter to `sidebar_id` for consistency with
`is_registered_sidebar ()`.



Revision 39892 Author SergeyBiryukov Date 2017-01-12 06:37:06 +0000 (Thu, 12 Jan 2017)
Widgets: In `unregister_sidebar()`, rename the `$name` parameter to `$sidebar_id` for consistency with `is_registered_sidebar()`.

Also correct the parameter type in [email protected]` entry.

Props Soean, tmatsuur.
Fixes #35147.
Modified Paths Diff Modified: trunk/src/wp-includes/widgets.php
--- trunk/src/wp-includes/widgets.php	2017-01-12 06:28:32 UTC (rev 39891)
+++ trunk/src/wp-includes/widgets.php	2017-01-12 06:37:06 UTC (rev 39892)
@@ -281,12 +281,12 @@
  *
  * @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 ] );
 }
 
 /**
_______________________________________________
wp-svn mailing list
[email protected]
http://lists.wordpress.org/mailman/listinfo/wp-svn
...



Programming list archiving by: Enterprise Git Hosting