Explorar el Código

Move the HTML5 theme support to the appropriate function

Kostas Nicolacopoulos hace 10 años
padre
commit
6d1e41f099
Se han modificado 2 ficheros con 8 adiciones y 7 borrados
  1. 0 7
      functions.php
  2. 8 0
      library/bones.php

+ 0 - 7
functions.php

@@ -244,11 +244,4 @@ function bones_fonts() {
 
 add_action('wp_enqueue_scripts', 'bones_fonts');
 
-// Enable support for HTML5 markup.
-	add_theme_support( 'html5', array(
-		'comment-list',
-		'search-form',
-		'comment-form'
-	) );
-
 /* DON'T DELETE THIS CLOSING TAG */ ?>

+ 8 - 0
library/bones.php

@@ -215,6 +215,14 @@ function bones_theme_support() {
 			'footer-links' => __( 'Footer Links', 'bonestheme' ) // secondary nav in footer
 		)
 	);
+
+	// Enable support for HTML5 markup.
+	add_theme_support( 'html5', array(
+		'comment-list',
+		'search-form',
+		'comment-form'
+	) );
+
 } /* end bones theme support */