[wp-trac] [WordPress Trac] #21256: New theme feature - add_theme_support( 'content-width', $defaults )
WordPress Trac
noreply at wordpress.org
Mon Feb 4 21:34:38 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):
For backwards compatibility with older versions, theme authors can use the
following code:
{{{
global $wp_version;
if ( version_compare( $wp_version, '3.6', '>=' ) ) :
add_theme_support( 'content-width', 500 );
else :
if ( ! isset( $content_width ) )
$content_width = 500;
endif;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21256#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list