[wp-trac] [WordPress Trac] #24393: the_post_format_gallery() should not echo an empty array

WordPress Trac noreply at wordpress.org
Thu May 23 01:54:01 UTC 2013


#24393: the_post_format_gallery() should not echo an empty array
--------------------------+--------------------
 Reporter:  DrewAPicture  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Post Formats  |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by SergeyBiryukov):

 According to the inline docs, `get_post_gallery()` always returns an
 array: [[BR]]
 [source:trunk/wp-includes/media.php at 24329#L2371].

 Perhaps `the_post_format_gallery()` should take an empty array into
 account instead?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24393#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list