Post Formats code re-formatting

See: https://github.com/Automattic/_s/pull/498#issuecomment-44492997
This commit is contained in:
Emil Uzelac 2014-05-29 01:54:04 -05:00
parent cbe996bfb9
commit d8a88d2097
1 changed files with 12 additions and 10 deletions

View File

@ -45,7 +45,18 @@ function _s_setup() {
'primary' => __( 'Primary Menu', '_s' ), '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' ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
// Setup the WordPress core custom background feature. // Setup the WordPress core custom background feature.
@ -53,15 +64,6 @@ function _s_setup() {
'default-color' => 'ffffff', 'default-color' => 'ffffff',
'default-image' => '', 'default-image' => '',
) ) ); ) ) );
// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
'gallery',
'caption',
) );
} }
endif; // _s_setup endif; // _s_setup
add_action( 'after_setup_theme', '_s_setup' ); add_action( 'after_setup_theme', '_s_setup' );