Opened 11 years ago
Closed 11 years ago
#24309 closed enhancement (fixed)
Add filters for get_post_galleries() and get_post_gallery()
Reported by: | alexkingorg | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Gallery | Keywords: | has-patch needs-refresh |
Focuses: | Cc: |
Description
As post format implementations were not tightly defined in the past, there are a variety of gallery implementations in the wild. For example, not all implementations included the use of the [gallery] shortcode.
Adding in a couple of hooks will likely allow for backward compatibility to those implementations.
Attachments (1)
Change History (8)
#4
@
11 years ago
As said in IRC:
- as long as passed args make sense, good for commit from me.
- but: it does make me ask why get_post_gallery() does not call get_post_galleries().
- if there is a filter in the latter, then the former really needs to wrap the latter.
Going to look at this in concert with #24202 and a general audit of these functions.
Note: See
TracTickets for help on using
tickets.
add filters to Gallery post format functions