<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Make WordPress Themes &#187; 3.4</title>
	<atom:link href="http://make.wordpress.org/themes/tag/3-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://make.wordpress.org/themes</link>
	<description>Just another make.wordpress.org site</description>
	<lastBuildDate>Tue, 21 May 2013 00:06:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta3-24330</generator>
	<atom:link rel='hub' href='http://make.wordpress.org/themes/?pushpress=hub'/>
		<item>
		<title>Proposed WordPress 3.4 Guidelines Revisions</title>
		<link>http://make.wordpress.org/themes/2012/05/08/proposed-wordpress-3-4-guidelines-revisions/</link>
		<comments>http://make.wordpress.org/themes/2012/05/08/proposed-wordpress-3-4-guidelines-revisions/#comments</comments>
		<pubDate>Tue, 08 May 2012 15:21:39 +0000</pubDate>
		<dc:creator>Chip Bennett</dc:creator>
				<category><![CDATA[discussion]]></category>
		<category><![CDATA[3.4]]></category>
		<category><![CDATA[Guidelines]]></category>

		<guid isPermaLink="false">http://make.wordpress.org/themes/?p=915</guid>
		<description><![CDATA[As we near the final release of WordPress 3.4, it is time to begin discussion and finalization of the related changes to the Theme Review Guidelines. Below are the proposed changes. Please discuss in the comments. We&#8217;ll do our best to keep this proposed list updated based on discussions in the comments. New WordPress 3.4 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>As we near the final release of <a href="http://codex.wordpress.org/Version_3.4">WordPress 3.4</a>, it is time to begin discussion and finalization of the related changes to the Theme Review Guidelines. Below are the proposed changes. Please discuss in the comments. We&#8217;ll do our best to keep this proposed list updated based on discussions in the comments.</p>
<h3>New WordPress 3.4 Functionality</h3>
<ul>
<li>Custom Headers/Backgrounds
<ul>
<li>New and deprecated functions are already covered by existing Guidelines. Themes may OPTIONALLY provide backward-compatibility with pre-3.4 handling of custom backgrounds and headers</li>
</ul>
</li>
<li>Child Themes
<ul>
<li>Child Themes will formally be allowed to be submitted for inclusion in the Theme repository.</li>
<li>Child Themes are REQUIRED to use an approved Theme as a Template (i.e. as the Parent Theme)</li>
<li>Child Themes are REQUIRED to demonstrate sufficient difference from the Parent Theme to warrant inclusion</li>
<li>Stand-alone Themes are REQUIRED to provide basic Child-Theme support, including:
<ul>
<li>Proper use of <code>get_template_directory()</code>/<code>get_template_directory_uri()</code> vs. <code>get_stylesheet_directory()</code>/<code>get_stylesheet_directory_uri()</code></li>
<li>Proper enqueueing of stylesheets, and proper cascading of styles, including no inline styles in the Theme template</li>
</ul>
</li>
</ul>
</li>
<li>Backward Compatibility
<ul>
<li>Backward compatibility is covered by existing Guidelines. Per existing Guidelines (2 major WP versions required/1 major WP version recommended):
<ul>
<li>Themes MUST NOT support backward-compatibility for more than two major WordPress versions (i.e. 3.2).</li>
<li>Themes are RECOMMENDED NOT to support backward-compatibility for more than one major WordPress version (i.e. 3.3).</li>
</ul>
</li>
</ul>
</li>
<li>Theme Settings and Data Security
<ul>
<li>Themes are RECOMMENDED to incorporate Theme options into the WordPress core Theme customizer.</li>
</ul>
</li>
</ul>
<h3>New Guidelines (REQUIRED)</h3>
<ul>
<li>Required Hooks and Navigation
<ul>
<li>Add to list of template tags REQUIRED where appropriate: <a href="http://codex.wordpress.org/Function_Reference/previous_image_link"><code>previous_image_link()</code></a>/<a href="http://codex.wordpress.org/Template_Tags/next_image_link"><code>next_image_link()</code></a> (or equivalent)</li>
</ul>
</li>
<li>Theme Features
<ul>
<li>If implementing a site logo, Themes are REQUIRED to provide user-configuration of the logo via the core custom header feature. (Exception: if incorporating <em>both</em> a site logo and custom header, the custom header is required to support the core custom header feature, and the custom logo is then required to be implemented via custom Theme option.)</li>
</ul>
</li>
<li>Function Parameters, Filters, and Action Hooks
<ul>
<li>Themes are REQUIRED to use function parameters, filters, and action hooks where appropriate in order to modify content, rather than hard-coding:
<ul>
<li><code>wp_title</code>: Themes are REQUIRED to modify output via <code>wp_title</code> filter. (<a href="http://codex.wordpress.org/Function_Reference/wp_title#Note">Refer to Codex note</a>.)</li>
<li><code>body_class()</code>/<code>post_class()</code>:
<ul>
<li>Themes are RECOMMENDED to modify output via filter<br />(<code>body_class</code>/<code>post_class</code>)</li>
<li>Themes may OPTIONALLY modify output via function parameter<br />(<code>body_class( $class )</code>/<code>post_class( $class )</code>)</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>New Guidelines (RECOMMENDED)</h3>
<ul>
<li>Code Quality
<ul>
<li>Themes are RECOMMENDED to follow the <a href="http://codex.wordpress.org/WordPress_Coding_Standards">official WordPress coding standards</a> for all PHP code.</li>
<li>Themes are RECOMMENDED to follow the <a href="http://codex.wordpress.org/CSS_Coding_Standards">official WordPress CSS coding standards</a> for all CSS.</li>
</ul>
</li>
<li>Script Enqueueing
<ul>
<li>Themes are RECOMMENDED to enqueue the comment-reply script at the <code>comment_form_before</code> hook<br />
<blockquote>
<pre>function theme_slug_enqueue_comment_reply_script() {
	if ( comments_open() &amp;&amp; get_option( 'thread_comments' ) ) {
		wp_enqueue_script( 'comment-reply' );
	}
}
add_action( 'comment_form_before', 'theme_slug_enqueue_comment_reply_script' );</pre>
</blockquote>
</li>
</ul>
</li>
</ul>
<h3>Clarifications</h3>
<p>Clarifications to existing guidelines being enforced:</p>
<ul>
<li>Presentation vs Functionality
<ul>
<li>Themes are REQUIRED to function as stand-alone code. Themes may OPTIONALLY integrate support for third-party Plugins; however, Themes are REQUIRED to degrade gracefully and to function fully and properly without any such Plugins active.</li>
</ul>
</li>
</ul>
<h3>Feedback</h3>
<p>What else should be included? What should be revised? Let us know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://make.wordpress.org/themes/2012/05/08/proposed-wordpress-3-4-guidelines-revisions/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve updated wp themes com to use WordPress&#8230;</title>
		<link>http://make.wordpress.org/themes/2012/04/23/ive-updated-wp-themes-com-to-use-wordpress/</link>
		<comments>http://make.wordpress.org/themes/2012/04/23/ive-updated-wp-themes-com-to-use-wordpress/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 16:29:13 +0000</pubDate>
		<dc:creator>Andrew Nacin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3.4]]></category>
		<category><![CDATA[wp-themes.com]]></category>

		<guid isPermaLink="false">http://make.wordpress.org/themes/2012/04/23/ive-updated-wp-themes-com-to-use-wordpress/</guid>
		<description><![CDATA[I&#8217;ve updated wp-themes.com to use WordPress 3.4, that way I could fix #WP20514. This could potentially reveal themes that are broken in 3.4, so keep an eye out. I will be watching the error logs.]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve updated wp-themes.com to use WordPress 3.4, that way I could fix <a href="http://core.trac.wordpress.org/ticket/20514">#WP20514</a>. This could potentially reveal themes that are broken in 3.4, so keep an eye out. I will be watching the error logs.</p>
]]></content:encoded>
			<wfw:commentRss>http://make.wordpress.org/themes/2012/04/23/ive-updated-wp-themes-com-to-use-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updating Custom Backgrounds and Custom Headers for WordPress 3.4</title>
		<link>http://make.wordpress.org/themes/2012/04/06/updating-custom-backgrounds-and-custom-headers-for-wordpress-3-4/</link>
		<comments>http://make.wordpress.org/themes/2012/04/06/updating-custom-backgrounds-and-custom-headers-for-wordpress-3-4/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 14:58:24 +0000</pubDate>
		<dc:creator>Chip Bennett</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3.4]]></category>
		<category><![CDATA[custom backgrounds]]></category>
		<category><![CDATA[custom headers]]></category>

		<guid isPermaLink="false">http://make.wordpress.org/themes/?p=847</guid>
		<description><![CDATA[When WordPress 3.4 is released, the old implementation methods for custom backgrounds and custom image headers via add_custom_background() and add_custom_image_header() will be deprecated, in favor of a much simpler &#8211; and much more powerful &#8211; implementation method, using add_theme_support(). Here&#8217;s how to update your existing Themes to use the new implementation. Custom Backgrounds Old method: [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>When WordPress 3.4 is released, the old implementation methods for <a href="http://codex.wordpress.org/Custom_Backgrounds">custom backgrounds</a> and <a href="http://codex.wordpress.org/Custom_Headers">custom image headers</a> via <a href="http://codex.wordpress.org/Function_Reference/add_custom_background"><code>add_custom_background()</code></a> and <a href="http://codex.wordpress.org/Function_Reference/add_custom_image_header"><code>add_custom_image_header()</code></a> will be <a href="http://core.trac.wordpress.org/ticket/20249">deprecated</a>, in favor of a much simpler &#8211; and much more powerful &#8211; implementation method, using <a href="http://codex.wordpress.org/Function_Reference/add_theme_support"><code>add_theme_support()</code></a>. Here&#8217;s how to update your existing Themes to use the new implementation.</p>
<h2>Custom Backgrounds</h2>
<p>Old method:</p>
<blockquote><p><code>add_custom_background();</code></p></blockquote>
<p>New method:</p>
<blockquote><p><code>add_theme_support( 'custom-background' );</code></p></blockquote>
<p>(Admit it: that was easy, wasn&#8217;t it?)</p>
<p>Now for the fun part: <code>add_theme_support( 'custom-background', $args )</code>. What&#8217;s that: <code>$args</code>, you say? Yes! This method accepts an arguments array. Here are the defaults:</p>
<blockquote>
<pre>$defaults = array( 
	'default-image' =&gt; '',
	'default-color' =&gt; '',
	'wp-head-callback' =&gt; '_custom_background_cb',
	'admin-head-callback' =&gt; '',
	'admin-preview-callback' =&gt; ''
)</pre>
</blockquote>
<p>Defining a default background image or default background color just became dead-simple:</p>
<blockquote>
<pre>add_theme_support( 'custom-background', array(
	// Background color default
	'default-color' =&gt; '000',
	// Background image default
	'default-image' =&gt; get_template_directory_uri() . '/images/background.jpg'
) );</pre>
</blockquote>
<p>You may notice that the arguments array also includes the same callbacks that have always been available for custom image header implementation, so you also have more control over the front-end style definitions as well as the admin display.</p>
<h2>Custom Headers</h2>
<p>Old method:</p>
<blockquote>
<pre>// Define default header image constant
define( 'HEADER_IMAGE', get_template_directory_uri() . '/images/headers/default.jpg' );
// Define header image width constant
define( 'HEADER_IMAGE_WIDTH', 1000 );
// Define header image height constant
define( 'HEADER_IMAGE_HEIGHT', 198 );
// Define header text constant
define( 'NO_HEADER_TEXT', false );
// Define header text color constant
define( 'HEADER_TEXTCOLOR', '000' );
// Turn on random header image rotation by default.
// Requires HEADER_IMAGE to be null
add_theme_support( 'custom-header', array( 'random-default' =&gt; true ) );

// Add Theme support
add_custom_image_header( $wphead_cb, $adminhead_cb, $adminpreview_cb );</pre>
</blockquote>
<p>New method:</p>
<blockquote>
<pre>add_theme_support( 'custom-header', array(
	// Header image default
	'default-image'			=&gt; get_template_directory_uri() . '/images/headers/default.jpg',
	// Header text display default
	'header-text'			=&gt; false,
	// Header text color default
	'default-text-color'		=&gt; '000',
	// Header image width (in pixels)
	'width'				=&gt; 1000,
	// Header image height (in pixels)
	'height'			=&gt; 198,
	// Header image random rotation default
	'random-default'		=&gt; false,
	// Template header style callback
	'wp-head-callback'		=&gt; $wphead_cb,
	// Admin header style callback
	'admin-head-callback'		=&gt; $adminhead_cb,
	// Admin preview style callback
	'admin-preview-callback'	=&gt; $adminpreview_cb
) );</pre>
</blockquote>
<p>Again: that was easy, wasn&#8217;t it?</p>
<p>Just to clarify, here are the old-constant/new-array-key equivalents:</p>
<blockquote>
<pre>HEADER_IMAGE		=&gt; 'default-image'
HEADER_IMAGE_WIDTH	=&gt; 'width'
HEADER_IMAGE_HEIGHT	=&gt; 'height'
NO_HEADER_TEXT		=&gt; 'header-text'
HEADER_TEXTCOLOR	=&gt; 'default-text-color'</pre>
</blockquote>
<p>All of the same callbacks are supported, exactly as before.</p>
<p>For reference, here is the complete defaults array:</p>
<blockquote>
<pre>$defaults = array(
	'default-image' =&gt; '',
	'random-default' =&gt; false,
	'width' =&gt; 0,
	'height' =&gt; 0,
	'flex-height' =&gt; false,
	'flex-width' =&gt; false,
	'default-text-color' =&gt; '',
	'header-text' =&gt; true,
	'uploads' =&gt; true,
	'wp-head-callback' =&gt; '',
	'admin-head-callback' =&gt; '',
	'admin-preview-callback' =&gt; '',
);</pre>
</blockquote>
<p>As you can see from the defaults array, this new implementation adds some new functionality: flexible headers. See <a href="http://sabreuse.com/flexible-headers-in-wordpress-3-4-themes/">Amy Hendrix&#8217;s excellent write-up</a> for more information on this feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://make.wordpress.org/themes/2012/04/06/updating-custom-backgrounds-and-custom-headers-for-wordpress-3-4/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>Heads Up To Developers: WordPress 3.4 is in Beta</title>
		<link>http://make.wordpress.org/themes/2012/04/05/heads-up-to-developers-wordpress-3-4-is-in-beta/</link>
		<comments>http://make.wordpress.org/themes/2012/04/05/heads-up-to-developers-wordpress-3-4-is-in-beta/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 13:24:54 +0000</pubDate>
		<dc:creator>Chip Bennett</dc:creator>
				<category><![CDATA[discussion]]></category>
		<category><![CDATA[3.4]]></category>

		<guid isPermaLink="false">http://make.wordpress.org/themes/?p=843</guid>
		<description><![CDATA[See the post on the wpdevel site:  Here’s some of what’s new: Theme Customizer with Previewer Flexible Custom Header Sizes Selecting Custom Header and Background Images from Media Library Better experience searching for and choosing a theme And some of the under-the-hood changes: New XML-RPC API for external and mobile applications New API for registering [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>See <a href="http://wordpress.org/news/2012/04/wordpress-3-4-beta-1/">the post on the wpdevel site</a>:</p>
<blockquote><p> Here’s some of what’s new:</p>
<ul>
<li>Theme Customizer with Previewer</li>
<li>Flexible Custom Header Sizes</li>
<li>Selecting Custom Header and Background Images from Media Library</li>
<li>Better experience searching for and choosing a theme</li>
</ul>
<p>And some of the under-the-hood changes:</p>
<ul>
<li>New XML-RPC API for external and mobile applications</li>
<li>New API for registering theme support for custom headers and backgrounds</li>
<li>Performance improvements to WP_Query by splitting the query (Please test!)</li>
<li>Internationalization improvements (improved performance and locale support)</li>
<li>Performance and API improvements when working with lists of installed themes</li>
<li>Support for installing child themes from the WordPress Themes Directory</li>
</ul>
</blockquote>
<p>Note: there are changes in WordPress 3.4 that will impact Themes, and the Theme Review guidelines. Now is the time to <a href="http://wordpress.org/extend/plugins/wordpress-beta-tester/">switch your development environments over to the beta version</a>, and start hammering on the changes. (And if you find any bugs, <a href="http://core.trac.wordpress.org/">report them</a>!) Soon, the Theme Review Team will begin discussions regarding changes to the Guidelines. If you are interested in participating in those discussions, please beta-test now, and keep your eye on this site, and on the Theme-Reviewers mail-list.</p>
]]></content:encoded>
			<wfw:commentRss>http://make.wordpress.org/themes/2012/04/05/heads-up-to-developers-wordpress-3-4-is-in-beta/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
