[wp-trac] [WordPress Trac] #20230: Add new filter post_gallery_results to replace the core gallery template after the attachment query
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 13 18:02:51 UTC 2012
#20230: Add new filter post_gallery_results to replace the core gallery template
after the attachment query
-------------------------+-----------------------------
Reporter: jeremyfelt | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
The {{{post_gallery}}} filter in {{{gallery_shortcode()}}} already allows
complete replacement of the gallery template provided by core. However,
any function attached to this filter must also handle the query logic for
attachment data.
The proposed filter {{{post_gallery_results}}} is placed immediately after
all query logic is complete. The gallery template output can still be
replaced, but with the help of the {{{$attachments}}} data provided by
core queries.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20230>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list