[wp-trac] [WordPress Trac] #43374: PHP 7.2 Warning: count(): Parameter must be an array or an object that implements Countable in /wp-includes/theme.php on line 356

WordPress Trac noreply at wordpress.org
Tue Mar 20 08:55:07 UTC 2018


#43374: PHP 7.2 Warning: count(): Parameter must be an array or an object that
implements Countable in /wp-includes/theme.php on line 356
----------------------------------------+-----------------------------
 Reporter:  burlingtonbytes             |       Owner:
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  Future Release
Component:  Themes                      |     Version:
 Severity:  minor                       |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------
Changes (by ocean90):

 * keywords:   => needs-patch good-first-bug
 * status:  closed => reopened
 * version:  4.9.4 =>
 * resolution:  duplicate =>
 * milestone:  Awaiting Review => Future Release


Comment:

 A check for `is_array()` makes sense here. This would be consistent with
 `wp_get_themes()` for example.

 #42814 is not a master ticket.

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


More information about the wp-trac mailing list