Completed
Pull Request — master (#1282)
by Dwain
04:58
created
woothemes-sensei.php 1 patch
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -30,80 +30,80 @@
 block discarded – undo
30 30
 
31 31
 	if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
32 32
 
33
-    require_once( 'includes/class-sensei-autoloader.php' );
34
-    require_once( 'includes/lib/woo-functions.php' );
35
-    require_once( 'includes/sensei-functions.php' );
33
+	require_once( 'includes/class-sensei-autoloader.php' );
34
+	require_once( 'includes/lib/woo-functions.php' );
35
+	require_once( 'includes/sensei-functions.php' );
36 36
 
37
-    if ( ! is_admin() ) {
38
-        require_once( 'includes/template-functions.php' );
39
-    }
37
+	if ( ! is_admin() ) {
38
+		require_once( 'includes/template-functions.php' );
39
+	}
40 40
 
41
-    /**
42
-     * Returns the global Sensei Instance.
43
-     *
44
-     * @since 1.8.0
45
-     */
46
-    function Sensei(){
41
+	/**
42
+	 * Returns the global Sensei Instance.
43
+	 *
44
+	 * @since 1.8.0
45
+	 */
46
+	function Sensei(){
47 47
 
48
-        return Sensei_Main::instance();
48
+		return Sensei_Main::instance();
49 49
 
50
-    }
50
+	}
51 51
 
52 52
 	// set the sensei version number
53 53
 	Sensei()->version = '1.9.1';
54 54
 
55
-    //backwards compatibility
56
-    global $woothemes_sensei;
57
-    $woothemes_sensei = Sensei();
58
-
59
-    /**
60
-    * Hook in WooCommerce functionality
61
-    */
62
-    if( Sensei_WC::is_woocommerce_active() ){
63
-        add_action('init', array( 'Sensei_WC', 'load_woocommerce_integration_hooks' ) );
64
-    }
65
-
66
-    /**
67
-     * Load all Template hooks
68
-    */
69
-    if(! is_admin() ){
70
-
71
-        require_once( 'includes/hooks/template.php' );
72
-
73
-    }
74
-
75
-    /**
76
-     * Plugin updates
77
-     * @since  1.0.1
78
-     */
79
-    woothemes_queue_update( plugin_basename( __FILE__ ), 'bad2a02a063555b7e2bee59924690763', 152116 );
80
-
81
-    /**
82
-     * Sensei Activation Hook registration
83
-     * @since 1.8.0
84
-     */
85
-    register_activation_hook( __FILE__, 'activate_sensei' );
86
-
87
-    /**
88
-     * Activate_sensei
89
-     *
90
-     * All the activation checks needed to ensure Sensei is ready for use
91
-     * @since 1.8.0
92
-     */
93
-    function activate_sensei () {
94
-
95
-        // create the teacher role on activation and ensure that it has all the needed capabilities
96
-        Sensei()->teacher->create_role();
97
-
98
-        //Setup all the role capabilities needed
99
-        Sensei()->updates->add_sensei_caps();
100
-        Sensei()->updates->add_editor_caps();
101
-        Sensei()->updates->assign_role_caps();
102
-
103
-        //Flush rules
104
-        add_action( 'activated_plugin' , array( 'Sensei_Main','activation_flush_rules' ), 10 );
105
-
106
-        //Load the Welcome Screen
107
-        add_action( 'activated_plugin' , array( 'Sensei_Welcome','redirect' ), 20 );
108
-
109
-    }// end activate_sensei
55
+	//backwards compatibility
56
+	global $woothemes_sensei;
57
+	$woothemes_sensei = Sensei();
58
+
59
+	/**
60
+	 * Hook in WooCommerce functionality
61
+	 */
62
+	if( Sensei_WC::is_woocommerce_active() ){
63
+		add_action('init', array( 'Sensei_WC', 'load_woocommerce_integration_hooks' ) );
64
+	}
65
+
66
+	/**
67
+	 * Load all Template hooks
68
+	 */
69
+	if(! is_admin() ){
70
+
71
+		require_once( 'includes/hooks/template.php' );
72
+
73
+	}
74
+
75
+	/**
76
+	 * Plugin updates
77
+	 * @since  1.0.1
78
+	 */
79
+	woothemes_queue_update( plugin_basename( __FILE__ ), 'bad2a02a063555b7e2bee59924690763', 152116 );
80
+
81
+	/**
82
+	 * Sensei Activation Hook registration
83
+	 * @since 1.8.0
84
+	 */
85
+	register_activation_hook( __FILE__, 'activate_sensei' );
86
+
87
+	/**
88
+	 * Activate_sensei
89
+	 *
90
+	 * All the activation checks needed to ensure Sensei is ready for use
91
+	 * @since 1.8.0
92
+	 */
93
+	function activate_sensei () {
94
+
95
+		// create the teacher role on activation and ensure that it has all the needed capabilities
96
+		Sensei()->teacher->create_role();
97
+
98
+		//Setup all the role capabilities needed
99
+		Sensei()->updates->add_sensei_caps();
100
+		Sensei()->updates->add_editor_caps();
101
+		Sensei()->updates->assign_role_caps();
102
+
103
+		//Flush rules
104
+		add_action( 'activated_plugin' , array( 'Sensei_Main','activation_flush_rules' ), 10 );
105
+
106
+		//Load the Welcome Screen
107
+		add_action( 'activated_plugin' , array( 'Sensei_Welcome','redirect' ), 20 );
108
+
109
+	}// end activate_sensei
Please login to merge, or discard this patch.