[wp-trac] [WordPress Trac] #42987: is_active_sidebar returns true on after plugin deactivation

WordPress Trac noreply at wordpress.org
Wed Dec 27 12:44:46 UTC 2017


#42987: is_active_sidebar returns true on after plugin deactivation
--------------------------+-----------------------------
 Reporter:  tpaksu        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  4.9.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi,

 Steps to reproduce:

 code:

 {{{#!php
 <?php if(is_active_sidebar("custom-sidebar")) : ?>
     Sidebar is active, and it contains widget(s).
 <?php else: ?>
     Sidebar doesn't contain any widget.
 <?php endif;?>
 }}}

 1. Add a widget plugin to the `custom-sidebar`
 2. Disable the widget plugin
 3. Reload the page

 The page is still showing sidebar is active. and
 `wp_get_sidebars_widgets()` still contains the disabled plugin's widget
 info.

 Is this something intended? Or is it a bug?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42987>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list