[wp-trac] [WordPress Trac] #21256: New theme feature - add_theme_support( 'content-width', $defaults )

WordPress Trac noreply at wordpress.org
Thu Aug 1 09:33:53 UTC 2013


#21256: New theme feature - add_theme_support( 'content-width', $defaults )
--------------------------------------+------------------------------
 Reporter:  ramiy                     |       Owner:
     Type:  feature request           |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Themes                    |     Version:  3.4.1
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback 2nd-opinion  |
--------------------------------------+------------------------------
Changes (by jcastaneda):

 * cc: jomcastaneda@… (added)


Comment:

 Replying to [comment:32 DrewAPicture]:
 > Replying to [comment:31 studiograsshopper]:
 > > This seems to me to be a lot of hoops to jump through to deal with
 something which shouldn't be dealt with by PHP/HTML in the first place.
 Why not ditch $content_width altogether and let CSS do the work?
 > > (Or am I missing something obvious?)
 >
 > `$content_width` also controls the width of the content in the post
 editor so you get a realistic preview of what it will look like.

 From what I've experienced it is actually the editor stylesheet that
 handles that and not $content_width

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


More information about the wp-trac mailing list