Skip to content

Commit c60501c

Browse files
committed
Fix. Settings. Checking REST availability fixed #2.
1 parent f320f09 commit c60501c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/cleantalk-pluggable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ function apbct_settings__get_ajax_type()
12391239
'plugin_name' => 'apbct',
12401240
'_rest_nonce' => $localize['_rest_nonce']
12411241
);
1242-
$res = Helper::httpRequest(get_option('home'), $rc_params);
1242+
$res = json_decode(Helper::httpRequest(get_option('home'), $rc_params), true);
12431243
if ( is_array($res) && isset($res['success']) ) {
12441244
return 'rest';
12451245
}

0 commit comments

Comments
 (0)