forked from mirror/_s
Post Formats code re-formatting
See: https://github.com/Automattic/_s/pull/498#issuecomment-44492997
This commit is contained in:
parent
cbe996bfb9
commit
d8a88d2097
|
@ -44,8 +44,19 @@ function _s_setup() {
|
||||||
register_nav_menus( array(
|
register_nav_menus( array(
|
||||||
'primary' => __( 'Primary Menu', '_s' ),
|
'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' ) );
|
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' );
|
||||||
|
|
Reference in New Issue