File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ public function __construct() {
85
85
* @since 1.0.0
86
86
*/
87
87
public static function instance () {
88
+ $ vendor_file = OPTML_PATH . 'vendor/autoload.php ' ;
89
+ if ( is_readable ( $ vendor_file ) ) {
90
+ include_once $ vendor_file ;
91
+ }
92
+
88
93
if ( null === self ::$ _instance ) {
89
94
add_filter ( 'themeisle_sdk_products ' , [ __CLASS__ , 'register_sdk ' ] );
90
95
add_filter ( 'themeisle_sdk_ran_promos ' , '__return_true ' );
@@ -103,10 +108,6 @@ public static function instance() {
103
108
self ::$ _instance ->cli = new Optml_Cli ();
104
109
}
105
110
}
106
- $ vendor_file = OPTML_PATH . 'vendor/autoload.php ' ;
107
- if ( is_readable ( $ vendor_file ) ) {
108
- include_once $ vendor_file ;
109
- }
110
111
111
112
return self ::$ _instance ;
112
113
}
You can’t perform that action at this time.
0 commit comments