[theme-reviewers] Updating Custom Backgrounds and Custom Headers for WordPress 3.4

David Law wp-hackers at google-adsense-templates.co.uk
Mon Apr 16 15:09:19 UTC 2012


On Fri, 6 Apr 2012 10:00:04 -0500, you wrote:

>Just posted to the make.themes site:
>http://make.wordpress.org/themes/2012/04/06/updating-custom-backgrounds-and-custom-headers-for-wordpress-3-4/
>
>Feel free to discuss and/or ask questions, either on the post or here in
>the mail list.
>
>Thanks,
>
>Chip


Has anyone got the new Custom Headers code working on WordPress 3.4
beta and WordPress 3.3 as well? Got it working in 3.4 using Chip's
tutorial and
http://sabreuse.com/flexible-headers-in-wordpress-3-4-themes/

I can see the new code won't be compatible with 3.3, but still need to
make themes backwards compatible to some degree (I try for 3.*
compatible).

Updating a theme in advance of WordPress 3.4 and looking for a good
way to make it backwards compatible.

custom-background was easy, since it's a small amount of code so added
conditional code.

if ($wp_version >= '3.4') {
add_theme_support( 'custom-background', array(
	'default-color' => '',
) );
#add_theme_support('custom-background');
}else{
add_custom_background();
}

Can do the same for Custom Headers, but think it will be messy. Anyone
got a 'good' solution up and running?

David
-- 
http://www.stallion-theme.com/ Stallion All In One WordPress SEO Theme
http://www.stallion-theme.com/stallion-wordpress-seo-plugin Stallion
WordPress SEO Plugin


More information about the theme-reviewers mailing list