[wp-trac] [WordPress Trac] #55203: Bug with get_post_galleries

WordPress Trac noreply at wordpress.org
Fri Feb 25 12:42:25 UTC 2022


#55203: Bug with get_post_galleries
---------------------------------------------+-----------------------
 Reporter:  BinaryMoon                       |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.9.2
Component:  Media                            |     Version:  5.9
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52797" 52797]:
 {{{
 #!CommitTicketReference repository="" revision="52797"
 Media: Make `get_post_galleries()` only return galleries.

 This change makes sure only gallery content is returned by
 `get_post_galleries()`. It fixes an issue where non gallery block content
 was also returned by the function.

 Props BinaryMoon, costdev, glendaviesnz.
 Fixes #55203.
 }}}

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


More information about the wp-trac mailing list