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 ec71e06 commit e5a436b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions includes/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,29 @@ function disable($args, $assoc_args)

if(isset($remove_xmlrpc_comments)){
$disable_comments_settings['remove_xmlrpc_comments'] = $remove_xmlrpc_comments;
$msg .= __( 'Disable Comments via XML-RPC. ', 'disable-comments' );
if($remove_xmlrpc_comments){
$msg .= __( 'Disable Comments via XML-RPC. ', 'disable-comments' );
}
else{
$msg .= __( 'Enabled Comments via XML-RPC. ', 'disable-comments' );
}
}
if(isset($remove_rest_API_comments)){
$disable_comments_settings['remove_rest_API_comments'] = $remove_rest_API_comments;
$msg .= __( 'Disable Comments via REST API. ', 'disable-comments' );
if($remove_rest_API_comments){
$msg .= __( 'Disable Comments via REST API. ', 'disable-comments' );
}
else{
$msg .= __( 'Enabled Comments via REST API. ', 'disable-comments' );
}
}
if($disable_avatar != null){
$disable_comments_settings['disable_avatar'] = $disable_avatar;
if($disable_avatar){
$msg .= __( 'Disabled Avatar on your entire site.', 'disable-comments' );
$msg .= __( 'Disabled Avatar on your entire site. ', 'disable-comments' );
}
else{
$msg .= __( 'Enabled Avatar on your entire site.', 'disable-comments' );
$msg .= __( 'Enabled Avatar on your entire site. ', 'disable-comments' );
}
}

Expand Down

0 comments on commit e5a436b

Please sign in to comment.