Ticket #35147: 35147.diff
| File 35147.diff, 701 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/widgets.php
281 281 * 282 282 * @global array $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID. 283 283 * 284 * @param string $name The ID of the sidebar when it was added.284 * @param string|int $sidebar_id The ID of the sidebar when it was registered. 285 285 */ 286 function unregister_sidebar( $ name) {286 function unregister_sidebar( $sidebar_id ) { 287 287 global $wp_registered_sidebars; 288 288 289 unset( $wp_registered_sidebars[ $ name] );289 unset( $wp_registered_sidebars[ $sidebar_id ] ); 290 290 } 291 291 292 292 /**