[wp-trac] Re: [WordPress Trac] #8480: apply_filters('post_gallery',
'', $attr) should be apply_filters('post_gallery', $attr);
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 4 01:21:48 GMT 2008
#8480: apply_filters('post_gallery', '', $attr) should be
apply_filters('post_gallery', $attr);
-----------------------------------------------+----------------------------
Reporter: chionsas.org | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Gallery | Version: 2.7
Severity: normal | Resolution: invalid
Keywords: gallery, shortcode, apply_filters |
-----------------------------------------------+----------------------------
Comment (by DD32):
Oh, Theres a possibility you were mis-understanding the use of that filter
now i look at it again.
the post_gallery filter is to completely override the builtin gallery
function, Its not used to modify gallery arguements. In the event that a
non-empty string is returned from the filter, the function uses that
string as the gallery content instead of generating its own.
--
Ticket URL: <http://trac.wordpress.org/ticket/8480#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list