[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
Mon Apr 30 04:50:54 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:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9.6
Component:  Themes                    |     Version:
 Severity:  minor                     |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43039" 43039]:
 {{{
 #!CommitTicketReference repository="" revision="43039"
 Themes: Avoid a PHP 7.2 warning in `get_theme_roots()` when
 `$wp_theme_directories` is an uncountable value.

 See [41174] for `wp_get_themes()` and `get_raw_theme_root()`.

 Props burlingtonbytes, teddytime, lbenicio, desrosj.
 Fixes #43374. See #40109.
 }}}

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


More information about the wp-trac mailing list