Skip to content

Commit

Permalink
Update cli.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Md. Alimuzzaman Alim committed Apr 27, 2022
1 parent e5a436b commit 9392415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function disable($args, $assoc_args)

if(isset($remove_xmlrpc_comments)){
$disable_comments_settings['remove_xmlrpc_comments'] = $remove_xmlrpc_comments;
if($remove_xmlrpc_comments){
if($remove_xmlrpc_comments && $remove_xmlrpc_comments !== 'false'){
$msg .= __( 'Disable Comments via XML-RPC. ', 'disable-comments' );
}
else{
Expand All @@ -172,7 +172,7 @@ function disable($args, $assoc_args)
}
if(isset($remove_rest_API_comments)){
$disable_comments_settings['remove_rest_API_comments'] = $remove_rest_API_comments;
if($remove_rest_API_comments){
if($remove_rest_API_comments && $remove_rest_API_comments !== 'false'){
$msg .= __( 'Disable Comments via REST API. ', 'disable-comments' );
}
else{
Expand All @@ -181,7 +181,7 @@ function disable($args, $assoc_args)
}
if($disable_avatar != null){
$disable_comments_settings['disable_avatar'] = $disable_avatar;
if($disable_avatar){
if($disable_avatar && $disable_avatar != 'false'){
$msg .= __( 'Disabled Avatar on your entire site. ', 'disable-comments' );
}
else{
Expand Down

0 comments on commit 9392415

Please sign in to comment.