PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
← All changes | modules/flow/class-cartflows-flow.php +7 -2 1.1.12 → 3.3.0 View file →
@@ -4,8 +4,12 @@
4 4 *
5 5 * @package CartFlows
6 6 */
7 7
8 +// Exit if accessed directly.
9 +if ( ! defined( 'ABSPATH' ) ) {
10 + exit;
11 +}
8 12 define( 'CARTFLOWS_FLOW_DIR', CARTFLOWS_DIR . 'modules/flow/' );
9 13 define( 'CARTFLOWS_FLOW_URL', CARTFLOWS_URL . 'modules/flow/' );
10 14
11 15 /**
@@ -27,9 +31,9 @@
27 31 * Initiator
28 32 */
29 33 public static function get_instance() {
30 34 if ( ! isset( self::$instance ) ) {
31 - self::$instance = new self;
35 + self::$instance = new self();
32 36 }
33 37 return self::$instance;
34 38 }
35 39
@@ -36,10 +40,11 @@
36 40 /**
37 41 * Constructor function that initializes required actions and hooks
38 42 */
39 43 public function __construct() {
44 +
45 + require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-step-meta-base.php';
40 46 require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-loader.php';
41 - require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-meta.php';
42 47 }
43 48 }
44 49
45 50 /**