[wp-trac] [WordPress Trac] #26642: [caption] is 10px too wide

WordPress Trac noreply at wordpress.org
Wed Jan 15 22:51:04 UTC 2014


#26642: [caption] is 10px too wide
-------------------------+----------------------
 Reporter:  Looimaster   |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Media        |     Version:  3.8
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |
-------------------------+----------------------
Changes (by ocean90):

 * keywords:  has-patch 2nd-opinion =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 bcworkz, we can't remove the default value for backward compatibility
 reasons.

 Looimaster, you can use the filter (added in [25444]) to remove the 10px
 (see below) and add your own styles to make it pretty in your theme.

 {{{
 add_filter( 'img_caption_shortcode_width', '__return_zero' )
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26642#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list