From d8a88d20976cb388219bb5e52a38232278c8a7f1 Mon Sep 17 00:00:00 2001 From: Emil Uzelac Date: Thu, 29 May 2014 01:54:04 -0500 Subject: [PATCH] Post Formats code re-formatting See: https://github.com/Automattic/_s/pull/498#issuecomment-44492997 --- functions.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index 95b2d7c6..46fa609f 100644 --- a/functions.php +++ b/functions.php @@ -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' );