[wp-trac] [WordPress Trac] #19450: the_widget won't replace the widget class if not using the default sidebar arguments

WordPress Trac noreply at wordpress.org
Tue Oct 13 01:48:43 UTC 2015


#19450: the_widget won't replace the widget class if not using the default sidebar
arguments
--------------------------+-----------------------------
 Reporter:  Felipelavinz  |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  Widgets       |     Version:  3.2.1
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35106"]:
 {{{
 #!CommitTicketReference repository="" revision="35106"
 Widgets: When using `the_widget()`, the `$before_widget` argument only
 receives the widget class if using the default sidebar arguments. Run
 `sprintf` after parsing the args to fix this.

 Adds unit test.

 Props coffee2code.
 Fixes #19450.
 }}}

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


More information about the wp-trac mailing list