[wp-trac] Re: [WordPress Trac] #6812: Image captions

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 23 20:34:46 GMT 2008


#6812: Image captions
----------------------------+-----------------------------------------------
 Reporter:  matt            |        Owner:  azaozz
     Type:  enhancement     |       Status:  closed
 Priority:  normal          |    Milestone:  2.6   
Component:  Administration  |      Version:  2.5   
 Severity:  normal          |   Resolution:  fixed 
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Comment (by Otto42):

 I don't even see why that filter hook for disable captions is necessary.
 You've already got a filter to replace the captions system entirely. So
 disabling captions is as easy as this:
 {{{
 function no_caption($deprecated, $attr, $content) { return $content; };
 add_filter('img_caption_shortcode', 'no_caption', 10, 3);
 }}}

 Why have yet another useless filter hook?

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


More information about the wp-trac mailing list