[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
Wed Nov 5 21:11:30 UTC 2014


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

Comment (by coffee2code):

 Added [attachment:19450.2.diff] as a refresh of [attachment:19450.diff],
 namely to add a unit test.

 As stated before, most of the change is whitespace. The patch essentially
 just moves the execution of `sprintf()` for the 'before_widget' value
 until after the call to `wp_parse_args()` to allow any customized
 'before_widget' string to still get the benefit of the auto-assignment of
 the default classname by including '%s' in the string.

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


More information about the wp-trac mailing list