[wp-trac] Re: [WordPress Trac] #6954: Parameter not passed in 'post_gallery' filter

WordPress Trac wp-trac at lists.automattic.com
Sun May 11 01:31:25 GMT 2008


#6954: Parameter not passed in 'post_gallery' filter
------------------------------+---------------------------------------------
 Reporter:  scribu            |        Owner:  guillep2k
     Type:  defect            |       Status:  closed   
 Priority:  normal            |    Milestone:           
Component:  General           |      Version:           
 Severity:  normal            |   Resolution:  invalid  
 Keywords:  gallery, filters  |  
------------------------------+---------------------------------------------
Changes (by DD32):

  * status:  new => closed
  * version:  2.5.1 =>
  * resolution:  => invalid
  * milestone:  2.5.2 =>

Comment:

 The code is correct as-is.

 The post_gallery filter is designed to allow another plugin to take over
 the gallery handling, A empty string is passed in, And if any content is
 returned, then its assumed that is the gallery.

 $attrs is simply passed along to the filter to allow it to receive the
 params, It cant change those for the rest of the function.

 There does not appear to be a filter to allow you to modify the default
 Attributes from a plugin if that is what you were after?

 I'm closing this as invalid due to the original reason for the ticket.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6954#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list