forked from mirror/_s
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:
commit
25a6b98898
|
@ -44,8 +44,19 @@ function _s_setup() {
|
|||
register_nav_menus( array(
|
||||
'primary' => __( 'Primary Menu', '_s' ),
|
||||
) );
|
||||
|
||||
/*
|
||||
* 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.
|
||||
/*
|
||||
* 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' );
|
||||
|
|
Reference in New Issue