File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 17
17
require_once __DIR__ . '/deps/scoper-autoload.php ' ;
18
18
19
19
$ disableGetPostCookieParsing = false ;
20
- try {
21
- ( new RequestFactory () )->fromGlobals ();
22
- } catch ( InvalidStateException $ invalidStateException ) {
23
- $ disableGetPostCookieParsing = true ;
20
+ if ( PHP_SAPI !== 'cli ' ) {
21
+ try {
22
+ ( new RequestFactory () )->fromGlobals ();
23
+ } catch ( InvalidStateException $ invalidStateException ) {
24
+ $ disableGetPostCookieParsing = true ;
25
+ }
24
26
}
25
27
26
28
$ configurator = new Configurator ();
Original file line number Diff line number Diff line change 1
1
== Changelog ==
2
2
= 2.0.3 =
3
3
Added: Added taxes settings to options export.
4
+ Fixed: Resolved error occuring when running in CLI environment.
4
5
5
6
= 2.0.2 =
6
7
Fixed: Fixed wp-cli compatibility issue.
Original file line number Diff line number Diff line change 64
64
== Changelog ==
65
65
= 2.0.3 =
66
66
Added: Added taxes settings to options export.
67
+ Fixed: Resolved error occuring when running in CLI environment.
67
68
68
69
= 2.0.2 =
69
70
Fixed: Fixed wp-cli compatibility issue.
You can’t perform that action at this time.
0 commit comments