Merge pull request #502 from emiluzelac/patch-24

Minor coding standards adjustments for HTML5 markup support declaration. See https://github.com/Automattic/_s/pull/498#issuecomment-44492997.
This commit is contained in:
Philip Arthur Moore 2014-05-29 16:08:33 +07:00
commit 25a6b98898
1 changed files with 12 additions and 10 deletions

View File

@ -45,7 +45,18 @@ function _s_setup() {
'primary' => __( 'Primary Menu', '_s' ),
) );
// Enable support for Post Formats.
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
) );
/*
* Enable support for Post Formats.
* See http://codex.wordpress.org/Post_Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
// Setup the WordPress core custom background feature.
@ -53,15 +64,6 @@ function _s_setup() {
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
'gallery',
'caption',
) );
}
endif; // _s_setup
add_action( 'after_setup_theme', '_s_setup' );