Opened 13 years ago
Closed 13 years ago
#24309 closed enhancement (fixed)
Add filters for get_post_galleries() and get_post_gallery()
| Reported by: | alexkingorg | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Gallery | Version: | 3.6 |
| Severity: | normal | Keywords: | has-patch needs-refresh |
| Cc: | Focuses: |
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
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
add filters to Gallery post format functions