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

WordPress Trac noreply at wordpress.org
Mon Mar 28 20:51:17 UTC 2022

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

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


 In [changeset:"53006" 53006]:
 #!CommitTicketReference repository="" revision="53006"
 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.
 Merges [52797] to the 5.9 branch.
 Fixes #55203.

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

More information about the wp-trac mailing list