Permalink
Browse files

Start the engine using a different hook. Fixes #4. Props NicktheGeek

  • Loading branch information...
Jared Atchison
Jared Atchison committed Jul 1, 2014
1 parent f6de505 commit f1af57f16adf405ef25b1a4f3b554cf714508943
Showing with 8 additions and 11 deletions.
  1. +8 −11 init.php
View
@@ -43,7 +43,7 @@ function __construct() {
// Activation
register_activation_hook( __FILE__, array( $this, 'activation' ) );
add_action( 'bbp_after_setup_theme', array( $this, 'genesis_check' ) );
add_action( 'genesis_init', array( $this, 'genesis_check' ) );
}
/**
@@ -52,19 +52,16 @@ function __construct() {
* @since 0.8.0
*/
function genesis_check() {
if ( 'genesis' == basename( TEMPLATEPATH ) ) {
// Load the text domain for translations
add_action( 'init', array( $this, 'pe_init' ) );
// Load the text domain for translations
add_action( 'init', array( $this, 'pe_init' ) );
// The meat and gravy
require_once( dirname( __FILE__ ) . '/bbpress-genesis-extend.php' );
require_once( dirname( __FILE__ ) . '/bbpress-genesis-extend-settings.php' );
// The meat and gravy
require_once( dirname( __FILE__ ) . '/bbpress-genesis-extend.php' );
require_once( dirname( __FILE__ ) . '/bbpress-genesis-extend-settings.php' );
// All systems go!
add_action( 'bbp_ready', 'bbpge_setup', 6 );
}
// All systems go!
add_action( 'bbp_ready', 'bbpge_setup', 6 );
}
/**

0 comments on commit f1af57f

Please sign in to comment.