@@ -2735,7 +2735,7 @@ function apbct_settings__get_key_auto($direct_call = false)
27352735 'message ' => __ ('You do not have sufficient permissions to access this page. ' , 'cleantalk-spam-protect ' ),
27362736
27372737 );
2738- die (json_encode ($ out ));
2738+ wp_die (json_encode ($ out ));
27392739 }
27402740
27412741 $ website = parse_url (get_option ('home ' ), PHP_URL_HOST ) . parse_url (get_option ('home ' ), PHP_URL_PATH );
@@ -2839,7 +2839,7 @@ function apbct_settings__get_key_auto($direct_call = false)
28392839 if ( $ direct_call ) {
28402840 return $ result ;
28412841 } else {
2842- die (json_encode ($ out ));
2842+ wp_die (json_encode ($ out ));
28432843 }
28442844}
28452845
@@ -3006,7 +3006,7 @@ function apbct_settings__get__long_description()
30063006 'success ' => false ,
30073007 'message ' => __ ('You do not have sufficient permissions to access this page. ' , 'cleantalk-spam-protect ' ),
30083008 );
3009- die (json_encode ($ out ));
3009+ wp_die (json_encode ($ out ));
30103010 }
30113011
30123012 $ setting_id = TT ::toString (Post::get ('setting_id ' , null , 'word ' ));
@@ -3164,9 +3164,9 @@ function apbct_settings__get__long_description()
31643164 $ utm = '?utm_source=apbct_hint_ ' . esc_attr ($ setting_id ) . '&utm_medium=WordPress&utm_campaign=ABPCT_Settings ' ;
31653165 }
31663166 $ descriptions [$ setting_id ]['desc ' ] = str_replace ('{utm_mark} ' , $ utm , $ descriptions [$ setting_id ]['desc ' ]);
3167- die (json_encode ($ descriptions [$ setting_id ]));
3167+ wp_die (json_encode ($ descriptions [$ setting_id ]));
31683168 } else {
3169- die (json_encode (['error ' => 'Invalid setting ID ' ]));
3169+ wp_die (json_encode (['error ' => 'Invalid setting ID ' ]));
31703170 }
31713171}
31723172
@@ -3182,10 +3182,10 @@ function apbct_settings__check_renew_banner()
31823182 'close_renew_banner ' => false ,
31833183 'message ' => __ ('You do not have sufficient permissions to access this page. ' , 'cleantalk-spam-protect ' ),
31843184 );
3185- die (json_encode ($ out ));
3185+ wp_die (json_encode ($ out ));
31863186 }
31873187
3188- die (
3188+ wp_die (
31893189 json_encode (
31903190 array ('close_renew_banner ' => ($ apbct ->data ['notice_trial ' ] == 0 && $ apbct ->data ['notice_renew ' ] == 0 ) ? true : false )
31913191 )
0 commit comments