[wp-trac] [WordPress Trac] #44104: Customize: Attempt to count uncountable value

WordPress Trac noreply at wordpress.org
Sat Jul 14 03:33:19 UTC 2018


#44104: Customize: Attempt to count uncountable value
--------------------------------------+---------------------
 Reporter:  dlh                       |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.9.8
Component:  Customize                 |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by dlh):

 * keywords:  has-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 It looks to me like this warning can be generated in the existing test for
 `search_available_items_query()` by ensuring that the
 `nav_menus_created_posts` setting has been added, which can be done by
 calling `do_action( 'customize_register' )` at the beginning of the test.
 `test_save_nav_menus_created_posts()` uses a similar pattern.
 [attachment:"44104.2.diff"] adds that line to the test.

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


More information about the wp-trac mailing list