Skip to content
Browse files

change require to wp core fct

  • Loading branch information...
1 parent c7c1e33 commit 44e06c2bad561ca99ffcc983267cefe5d32df762 @bueltge committed Sep 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 functions.php
View
8 functions.php
@@ -42,21 +42,21 @@ function documentation_setup() {
*
* @see https://github.com/bueltge/WordPress-Basis-Theme/tree/namespace/inc/admin
*/
- require_once( get_template_directory() . '/inc/class-branding.php' );
+ locate_template( 'inc/class-branding.php', TRUE, TRUE );
new Documentation_Admin_Branding( array() );
// params for options class
$args = array(
'theme_key' => strtolower( get_stylesheet() )
);
// Load up our theme options page and related code.
- require_once( get_template_directory() . '/inc/theme-options.php' );
+ locate_template( 'inc/theme-options.php', TRUE, TRUE );
$documentation_options = new Documentation_Options( $args );
// Include the theme customizer for options of theme options
- require_once( get_template_directory() . '/inc/theme-customize.php' );
+ locate_template( 'inc/theme-customize.php', TRUE, TRUE );
$documentation_customize = new Documentation_Customize( $args );
// include to write the custom theme options in theme head
- require_once( get_template_directory() . '/inc/head-style.php' );
+ locate_template( 'inc/head-style.php', TRUE, TRUE );
$documentation_head_style = new Documentation_Head_Style( $args );
// Add default posts and comments RSS feed links to <head>.

0 comments on commit 44e06c2

Please sign in to comment.
Something went wrong with that request. Please try again.