[wp-trac] [WordPress Trac] #24390: Post Formats: Return correct datatype in get_post_gallery()

WordPress Trac noreply at wordpress.org
Wed May 22 21:30:15 UTC 2013


#24390: Post Formats: Return correct datatype in get_post_gallery()
--------------------------+-----------------------
 Reporter:  obenland      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.6
Component:  Post Formats  |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 `get_post_gallery()` has a flag to request HTML or data. By default HTML
 is requested, yet the fallback data type that is returned by the function
 assumes that data was requested. This might lead to an array to string
 conversion if `the_post_format_gallery()` is being called in a post
 without a gallery.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24390>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list