[wp-trac] [WordPress Trac] #36660: WP_Customize_Widgets::preview_sidebars_widgets() can return false

WordPress Trac noreply at wordpress.org
Mon May 2 18:55:23 UTC 2016


#36660: WP_Customize_Widgets::preview_sidebars_widgets() can return false
------------------------------+--------------------------
 Reporter:  ocean90           |       Owner:  westonruter
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.5.2
Component:  Customize         |     Version:  4.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------
Changes (by westonruter):

 * keywords:  has-patch => has-patch commit
 * owner:   => westonruter
 * status:  new => reviewing


Comment:

 Added unit test in [attachment:36660.2.diff] to verify the fix. Without
 the patch, the unit test fails with:

 {{{
 1)
 Tests_WP_Customize_Widgets::test_customize_register_with_deleted_sidebars
 array_merge(): Argument #3 is not an array

 src/wp-includes/class-wp-customize-widgets.php:385
 tests/phpunit/tests/customize/widgets.php:112
 }}}

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


More information about the wp-trac mailing list