WordPress.org

Make WordPress Core

Ticket #35147: 35147.diff

File 35147.diff, 701 bytes (added by Soean, 5 years ago)
  • src/wp-includes/widgets.php

     
    281281 *
    282282 * @global array $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID.
    283283 *
    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.
    285285 */
    286 function unregister_sidebar( $name ) {
     286function unregister_sidebar( $sidebar_id ) {
    287287        global $wp_registered_sidebars;
    288288
    289         unset( $wp_registered_sidebars[ $name ] );
     289        unset( $wp_registered_sidebars[ $sidebar_id ] );
    290290}
    291291
    292292/**