Title: Active sidebar bug
Last modified: February 19, 2021

---

# Active sidebar bug

 *  Resolved [loshmi73](https://wordpress.org/support/users/loshmi73/)
 * (@loshmi73)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/active-sidebar-bug/)
 * When I check “Allow this sidebar to be replaced” function is_active_sidebar returns
   true even if the sidebar is empty (instead of false). At the same time, function
   dynamic_sidebar returns empty string (which is expected). Without plugin is_active_sidebar
   returns false if the sidebar is empty.
 * Steps to reproduce:
    - Goto Dashboard > Widgets
    - Leave Sidebar-y empty and “Allow this sidebar to be replaced” unchecked
    - Check the value of is_active_sidebar(“Sidebar-y“) on Page-X
    - Goto Dashboard > Widgets and check “Allow this sidebar to be replaced” for
      Sidebar-Y
    - Check the value of is_active_sidebar(“Sidebar-y“) on Page-X
 * `

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/active-sidebar-bug/#post-14072978)
 * Thank you for the detailed report and explanation. I’ve forwarded this to our
   devs. From what I can tell at the moment it’s not gonna be a “5min fix” 🙁
 *  Thread Starter [loshmi73](https://wordpress.org/support/users/loshmi73/)
 * (@loshmi73)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/active-sidebar-bug/#post-14073265)
 * Thank you for your quick response. I hope the developers won’t have much trouble
   🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Active sidebar bug’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [loshmi73](https://wordpress.org/support/users/loshmi73/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/active-sidebar-bug/#post-14073265)
 * Status: resolved