[wp-trac] [WordPress Trac] #35237: Invalid argument supplied for foreach() in /wp-includes/embed-template.php on line 54
WordPress Trac
noreply at wordpress.org
Tue Dec 29 09:37:19 UTC 2015
#35237: Invalid argument supplied for foreach() in /wp-includes/embed-template.php
on line 54
--------------------------+--------------------
Reporter: MarkRH | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: Embeds | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by swissspidy):
Replying to [comment:2 dd32]:
> Could this entire check be `if ( ! empty( $meta['sizes'] ) )`? Is there
a case where meta might be a non-false non-array or sizes contain anything
other than an array?
Yeah that would work too, from what I remember & tested now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35237#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list