[wp-trac] [WordPress Trac] #42987: is_active_sidebar returns true on after plugin deactivation
WordPress Trac
noreply at wordpress.org
Thu Dec 28 10:54:55 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 | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by tpaksu):
I solved it on my theme by using `retrieve_widgets` function which
internally calls `_wp_remove_unregistered_widgets` that I think clears the
inactive and disabled widgets from the database. But I don't feel
comfortable with that solution that runs on every page render.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42987#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list