From 7a570bef38d8b602723d51b315e1b2bfa0adc7de Mon Sep 17 00:00:00 2001 From: obenland Date: Mon, 20 May 2013 16:07:25 +0200 Subject: [PATCH] _s: Load all modules consistently at the bottom of the file. --- functions.php | 52 +++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/functions.php b/functions.php index 45e1202f..4a770fb5 100644 --- a/functions.php +++ b/functions.php @@ -11,11 +11,6 @@ if ( ! isset( $content_width ) ) $content_width = 640; /* pixels */ -/* - * Load Jetpack compatibility file. - */ -require( get_template_directory() . '/inc/jetpack.php' ); - if ( ! function_exists( '_s_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. @@ -26,26 +21,6 @@ if ( ! function_exists( '_s_setup' ) ) : */ function _s_setup() { - /** - * Custom template tags for this theme. - */ - require( get_template_directory() . '/inc/template-tags.php' ); - - /** - * Custom functions that act independently of the theme templates - */ - require( get_template_directory() . '/inc/extras.php' ); - - /** - * Customizer additions - */ - require( get_template_directory() . '/inc/customizer.php' ); - - /** - * WordPress.com-specific functions and definitions - */ - //require( get_template_directory() . '/inc/wpcom.php' ); - /** * Make theme available for translation * Translations can be filed in the /languages/ directory @@ -148,6 +123,31 @@ function _s_scripts() { add_action( 'wp_enqueue_scripts', '_s_scripts' ); /** - * Implement the Custom Header feature + * Implement the Custom Header feature. */ //require( get_template_directory() . '/inc/custom-header.php' ); + +/** + * Custom template tags for this theme. + */ +require( get_template_directory() . '/inc/template-tags.php' ); + +/** + * Custom functions that act independently of the theme templates. + */ +require( get_template_directory() . '/inc/extras.php' ); + +/** + * Customizer additions. + */ +require( get_template_directory() . '/inc/customizer.php' ); + +/** + * Load Jetpack compatibility file. + */ +require( get_template_directory() . '/inc/jetpack.php' ); + +/** + * WordPress.com-specific functions and definitions. + */ +//require( get_template_directory() . '/inc/wpcom.php' );