diff --git a/admin/admin.php b/admin/admin.php index 0696bf8..8a546f9 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -349,6 +349,7 @@ public function options_validate( array $input ): array { case 'comment_policy': case 'clean_emails': case 'disable_email_all_commenters': + case 'allowed_com_length_note_show': $input[ $key ] = $this->sanitize_bool( $value ); break; case 'email_subject': @@ -356,6 +357,7 @@ public function options_validate( array $input ): array { case 'mass_email_body': case 'forward_name': case 'forward_subject': + case 'allowed_com_length_note_text': $input[ $key ] = $this->sanitize_string( $value, $defaults[ $key ] ); break; case 'forward_email': diff --git a/admin/views/config-page.php b/admin/views/config-page.php index 483cd2f..93a1afc 100644 --- a/admin/views/config-page.php +++ b/admin/views/config-page.php @@ -116,6 +116,42 @@ class="small-text" + +
+ + ++ + | ++ options['allowed_com_length_note_show'] ); ?> + /> + | +
---|---|
+ + | ++ + | +