← All changes
|
modules/flow/classes/class-cartflows-flow-loader.php
+8
-4
1.1.19
→
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 | /** |
| 9 | 13 | * Initialization |
| 10 | 14 | * |
| 11 | 15 | * @since 1.0.0 |
| @@ -24,9 +28,9 @@ | ||
| 24 | 28 | * Initiator |
| 25 | 29 | */ |
| 26 | 30 | public static function get_instance() { |
| 27 | 31 | if ( ! isset( self::$instance ) ) { |
| 28 | - self::$instance = new self; | |
| 32 | + self::$instance = new self(); | |
| 29 | 33 | } |
| 30 | 34 | return self::$instance; |
| 31 | 35 | } |
| 32 | 36 | |
| @@ -43,13 +47,13 @@ | ||
| 43 | 47 | * @since 1.0.0 |
| 44 | 48 | * |
| 45 | 49 | * @return void |
| 46 | 50 | */ |
| 47 | - function include_files() { | |
| 51 | + public function include_files() { | |
| 52 | + | |
| 48 | 53 | require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-post-type.php'; |
| 49 | 54 | require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-step-post-type.php'; |
| 50 | - require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-step-post-meta.php'; | |
| 51 | - require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-flow-shortcodes.php'; | |
| 55 | + require_once CARTFLOWS_FLOW_DIR . 'classes/class-cartflows-permalink.php'; | |
| 52 | 56 | } |
| 53 | 57 | } |
| 54 | 58 | |
| 55 | 59 | /** |