[wp-trac] [WordPress Trac] #29155: Widgets: is_active_widget returns true even when the widget is not displayed on specific page

WordPress Trac noreply at wordpress.org
Fri Aug 8 17:51:23 UTC 2014


#29155: Widgets: is_active_widget returns true even when the widget is not
displayed on specific page
--------------------------+-----------------------------
 Reporter:  jeherve       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  3.9.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Steps to reproduce:

 1. Activate Twenty Eleven
 2. In Appearance > Widgets, add a widget to the Showcase widget area (only
 displayed on pages using the Showcase Page Template)
 3. Load your home page. {{{is_active_widget}}} will return true for that
 widget, even if it is not displayed on the home page.

 It seems like it would be nice if {{{is_active_widget}}} only returned
 true when the widget was actually displayed on the page. I'm not sure how
 to do that, though.

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


More information about the wp-trac mailing list