Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24390 closed defect (bug) (duplicate)

Post Formats: Return correct datatype in get_post_gallery()

Reported by: obenland's profile obenland Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords: has-patch
Focuses: Cc:

Description

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.

Attachments (1)

24390.patch (1.1 KB) - added by obenland 13 years ago.

Download all attachments as: .zip

Change History (3)

@obenland
13 years ago

#1 @SergeyBiryukov
13 years ago

#24393 was marked as a duplicate.

#2 @kovshenin
13 years ago

  • Milestone 3.6 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #24270.

Note: See TracTickets for help on using tickets.