[wp-trac] [WordPress Trac] #17044: div.wp-caption shortcode should have width of img, rather than add +10px

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 30 16:56:49 UTC 2011


#17044: div.wp-caption shortcode should have width of img, rather than add +10px
-------------------------------+------------------------------
 Reporter:  mgk25              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Shortcodes         |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |
-------------------------------+------------------------------

Comment (by greenshady):

 The reason it's a problem is that it makes it harder to style when you
 don't want borders or padding.  It's a lot easier to add 5px of padding
 than to remove 10px of overall width from an element with CSS.

 I still recommend closing this ticket though.  Changing this would break
 many themes, there's no good way to deprecate the code, and it's easy to
 fix.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17044#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list