[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:54:56 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:
--------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"43040" 43040]:
{{{
#!CommitTicketReference repository="" revision="43040"
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.
Merges [43039] to the 4.9 branch.
Fixes #43374. See #40109.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43374#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list