Skip to content

Commit

Permalink
fix issue saving disable comments on old posts PRESS10-72
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Jan 8, 2025
1 parent 4beda66 commit b72cdde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/RestApi/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public function update_item( $request ) {
update_option( 'auto_update_translation', $new_value );
break;
case 'disableCommentsOldPosts':
$new_value = ( $new_value ) ? 'true' : 'false';
update_option( 'close_comments_for_old_posts', $new_value );
break;
case 'closeCommentsDays':
Expand Down

0 comments on commit b72cdde

Please sign in to comment.