_s: Load all modules consistently at the bottom of the file.

This commit is contained in:
obenland 2013-05-20 16:07:25 +02:00
parent c7bf07061d
commit 7a570bef38
1 changed files with 26 additions and 26 deletions

View File

@ -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' );