[wp-trac] [WordPress Trac] #39277: get_post_galleries() produces PHP Warning in PHP 7.1 when parsing empty shortcode
WordPress Trac
noreply at wordpress.org
Fri Dec 16 07:34:10 UTC 2016
#39277: get_post_galleries() produces PHP Warning in PHP 7.1 when parsing empty
shortcode
------------------------------------------+--------------------
Reporter: DJPaul | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.1
Component: Shortcodes | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+--------------------
Comment (by dd32):
While looking at this, I ran into #39304,
[attachment:39304.diff:ticket:39304 39304.diff] includes a workaround for
this case by assuming an empty array in the event a non-array is returned
(Which seems like the expected behaviour here).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39277#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list