﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
21256,"New theme feature - add_theme_support( 'content-width', $defaults )",ramiy,,"Themes use '''$content_width''' variable to set the content area width, they use:

{{{
if ( ! isset( $content_width ) ) 
	$content_width = 500; 
}}}

This method has two flaws, it's not flexible and it does not support different sizes for different post-types.

WordPress has to make the content-width to be a builtin theme feature using '''add_theme_support()''', and make it more flexible and easy to update. I want to update this value using the Theme Customizer rather editing the function.php file.

The code needs to be easy to set and to support CPT, some thing like this:

{{{
$defaults = array(
	'post'       => '500',
	'page'       => '500',
	'attachment' => '650',
	'artist'     => '300',
	'movie'      => '400'
);
add_theme_support( 'content-width', $defaults );
}}}

Just an idea for 3.5.",feature request,new,normal,Awaiting Review,Themes,3.4.1,normal,,dev-feedback 2nd-opinion,johnbillion edward.caissie@… sabreuse@… konstantin@… lancewillett justin@… takashi@… jeremy+wp@… janw.oostendorp@… mark@… georgemamadashvili@… kontakt@… mdhansen@… maorhaz@… philip@… bob.ellison@… sunnyratilal5@… nashwan.doaqan@…
