[wp-trac] [WordPress Trac] #39304: `get_post_galleries()` can return incorrect gallery items.
WordPress Trac
noreply at wordpress.org
Fri Feb 17 06:45:32 UTC 2017
#39304: `get_post_galleries()` can return incorrect gallery items.
--------------------------------------+---------------------
Reporter: dd32 | Owner: dd32
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Changes (by dd32):
* owner: => dd32
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40070"]:
{{{
#!CommitTicketReference repository="" revision="40070"
Media: Avoid PHP Warnings in `get_post_galleries()` when processing empty
`[gallery]` shortcodes and avoid returning the incorrect results when the
global `$post` does not match the provided post ID.
Props dd32, joemcgill, seanchayes.
Fixes #39277, #39304.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39304#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list