File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -224,12 +224,9 @@ public function process() {
224
224
'host ' => null ,
225
225
'OS ' => null ,
226
226
'arch ' => null ,
227
+ 'basicauth ' => wp_is_site_protected_by_basic_auth () ? 'true ' : 'false ' ,
227
228
);
228
229
229
- if ( function_exists ( 'wp_is_site_protected_by_basic_auth ' ) ) {
230
- $ this ->data ->server ['basicauth ' ] = wp_is_site_protected_by_basic_auth () ? 'true ' : 'false ' ;
231
- }
232
-
233
230
if ( function_exists ( 'php_uname ' ) ) {
234
231
$ this ->data ->server ['host ' ] = php_uname ( 'n ' );
235
232
$ this ->data ->server ['OS ' ] = php_uname ( 's ' ) . ' ' . php_uname ( 'r ' );
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class QM_Data_Environment extends QM_Data {
62
62
* host: string|null,
63
63
* OS: string|null,
64
64
* arch: string|null,
65
+ * basicauth: 'true'|'false',
65
66
* }>
66
67
*/
67
68
public $ server ;
You can’t perform that action at this time.
0 commit comments