[wp-trac] [WordPress Trac] #39304: `get_post_galleries()` can return incorrect gallery items.

WordPress Trac noreply at wordpress.org
Fri Feb 17 06:46:47 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:
--------------------------------------+---------------------

Comment (by dd32):

 In [changeset:"40071"]:
 {{{
 #!CommitTicketReference repository="" revision="40071"
 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.
 Merges [40070] to the 4.7 branch.
 Fixes #39277, #39304.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39304#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list