[wp-trac] [WordPress Trac] #21256: New theme feature - add_theme_support( 'content-width', $defaults )
WordPress Trac
noreply at wordpress.org
Mon Feb 4 16:06:29 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 |
--------------------------------------+------------------------------
Comment (by ramiy):
As a first step towards this method we can do it much simpler.
Instead of:
{{{
if ( ! isset( $content_width ) )
$content_width = 500;
}}}
We can do this:
{{{
add_theme_support( 'content-width', 500 );
}}}
In the future, if we would like to extend this feature, we can use
is_array() for different post-types or page-template.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21256#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list