[wp-trac] [WordPress Trac] #34995: WP_Widget::widget not called

WordPress Trac noreply at wordpress.org
Fri Dec 11 05:24:22 UTC 2015


#34995: WP_Widget::widget not called
-------------------------------------+------------------------------
 Reporter:  btwatts                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Widgets                  |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------

Comment (by btwatts):

 Replying to [comment:2 westonruter]:
 > @btwatts Hi there.
 >
 > I just tried your plugin in 4.4 and I saw the widget load as expected
 with the `widget` method being called. Did you add the widget to the “Top
 Left” widget area (sidebar) or to an existing widget area in your theme?
 Just calling `register_sidebar()` is not enough for the widget area to
 appear on your site. You have to add the required `dynamic_sidebar()` call
 in the template as well.

 In multiple tests I have not seen WP_Widget::widget get called on any
 version I have of WordPress 4.4

 It works very well with 4.3.

 If I need to dig in deeper, I can set up to debug inside WP_Widget.

 ...but my debugging inside WordPress is so far untried.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34995#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list