[wp-trac] [WordPress Trac] #39693: Fix missing assignment of widgets on theme switch

WordPress Trac noreply at wordpress.org
Thu Sep 7 17:24:46 UTC 2017


#39693: Fix missing assignment of widgets on theme switch
--------------------------------------+------------------------
 Reporter:  melchoyce                 |       Owner:  obenland
     Type:  enhancement               |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.9
Component:  Widgets                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------

Comment (by obenland):

 [attachment:39693.7.diff] adds test
 `test_retreive_widgets_with_single_widget` to cover single widgets that
 were lost, fixed by the `is_numeric()` check in line 1169 in `wp-
 includes/widgets.php`.

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


More information about the wp-trac mailing list