File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed
Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change 3838if ( !defined ('TYPEROCKET_CORE_CONFIG_PATH ' ) )
3939 define ('TYPEROCKET_CORE_CONFIG_PATH ' , __DIR__ . '/config ' );
4040
41- if ( ! defined ('TYPEROCKET_SKIP_BOOT ' ) )
42- define ('TYPEROCKET_SKIP_BOOT ' , false );
41+ if ( ! defined ('TYPEROCKET_SKIP_INIT ' ) )
42+ define ('TYPEROCKET_SKIP_INIT ' , false );
4343
44- if ( ! TYPEROCKET_SKIP_BOOT ) {
45- // Boot application kernel
46- ( new ApplicationKernel )->boot ();
47-
48- // TypeRocket
49- if (defined ('WPINC ' )) {
50- (new System )->boot ();
51- }
52- else {
53- if (!defined ('TYPEROCKET_ROOT_INSTALL ' ))
54- define ('TYPEROCKET_ROOT_INSTALL ' , true );
55-
56- // Manually WordPress Load Hook
57- $ GLOBALS ['wp_filter ' ]['muplugins_loaded ' ][0 ]['callbacks ' ] = ['function ' => function () {
58- if ( file_exists (TYPEROCKET_ALT_PATH . '/rooter.php ' ) ) {
59- include (TYPEROCKET_ALT_PATH . '/rooter.php ' );
60- }
61-
62- (new System )->boot ();
63- (new Rooter )->boot ();
64- }, 'accepted_args ' => 0 ];
65- }
44+ if ( ! TYPEROCKET_SKIP_INIT ) {
45+ ApplicationKernel::init ();
6646}
You can’t perform that action at this time.
0 commit comments