[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
Wed Feb 7 23:48:43 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) | SergeyBiryukov
Priority: normal | Status: closed
Component: Media | Milestone: 4.9.5
Severity: normal | Version: 4.9.2
Keywords: good-first-bug has-patch fixed- | Resolution: fixed
major | Focuses:
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"42669"]:
{{{
#!CommitTicketReference repository="" revision="42669"
Media: Avoid a PHP warning in `wp_calculate_image_srcset()` if a plugin
returns a non-array value via `wp_calculate_image_srcset` filter.
Props mrmadhat, codegrau.
Merges [42639] to the 4.9 branch.
Fixes #43201.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43201#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list