[wp-trac] [WordPress Trac] #43201: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /wp-includes/media.php on line 1206
WordPress Trac
noreply at wordpress.org
Thu Feb 1 23:42:21 UTC 2018
#43201: PHP Warning: count(): Parameter must be an array or an object that
implements Countable in /wp-includes/media.php on line 1206
----------------------------------------+--------------------
Reporter: codegrau | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.4
Component: Media | Version: 4.9.2
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+--------------------
Comment (by mrmadhat):
Added a patch that checks `$sources` is an array before calling `count()`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43201#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list