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

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 10 19:26:33 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 azaozz):

 Replying to [comment:31 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?

 That would stop the captions from displaying on the site, but not in the
 visual editor and the user will still be able to enter them.

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


More information about the wp-trac mailing list