Opened 12 years ago
Closed 11 years ago
#24270 closed defect (bug) (fixed)
Post Formats: get_post_gallery() can return an array when asked for a string
Reported by: | kovshenin | Owned by: | markjaquith |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Post Formats | Keywords: | has-patch commit |
Focuses: | Cc: |
Description (last modified by )
If the requested post is not found or does not contain a gallery shortcode, get_post_gallery
returns an empty array, regardless of what the $html
argument is set to.
Attachments (4)
Change History (12)
#2
@
12 years ago
- Description modified (diff)
- Summary changed from Post Formats: get_post_galleries() can return an array when asked for a string to Post Formats: get_post_gallery() can return an array when asked for a string
#6
@
11 years ago
- Keywords commit added
my new patch applies cleanly and handles both cases 24270.3.diff
Note: See
TracTickets for help on using
tickets.
Sorry, blamed the wrong function :)
get_post_gallery
is the one and 24270.2.diff is the fix.