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

WordPress Trac noreply at wordpress.org
Wed May 16 02:51:46 UTC 2018


#44104: Customize: Attempt to count uncountable value
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.7
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 `WP_Customize_Nav_Menus::search_available_items_query()` attempts to count
 an instance of `WP_Customize_Setting`, which generates a warning in PHP
 7.2.

 It looks to me like the intent was to count the value of the setting
 instead, which should be an array.

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


More information about the wp-trac mailing list