From 3ce54ceb8556e68165362532eac02e24bebe51ed Mon Sep 17 00:00:00 2001 From: Clayton Collie Date: Thu, 18 Dec 2025 08:54:21 +0100 Subject: [PATCH 1/2] Refactor markup to follow WordPress standards --- includes/classes/Authentication/Passwords.php | 37 +++++++++++++------ includes/classes/Gutenberg/Gutenberg.php | 11 ++---- .../classes/PostPasswords/PostPasswords.php | 11 ++---- includes/classes/SupportMonitor/Monitor.php | 13 ++++++- 4 files changed, 45 insertions(+), 27 deletions(-) diff --git a/includes/classes/Authentication/Passwords.php b/includes/classes/Authentication/Passwords.php index 3fa76f1..7c7ddd2 100644 --- a/includes/classes/Authentication/Passwords.php +++ b/includes/classes/Authentication/Passwords.php @@ -70,10 +70,7 @@ public function register_setting() { esc_html__( 'Require Strong Passwords', 'tenup' ), [ $this, 'settings_ui' ], 'general', - 'default', - array( - 'label_for' => 'require-strong-passwords', - ) + 'default' ); } @@ -141,12 +138,21 @@ public function ms_settings() { - + - type="radio" id="require-strong-passwords-yes" value="1">
- type="radio" id="require-strong-passwords-no" value="0"> -

+
+ +
+ +

+
@@ -163,9 +169,18 @@ public function settings_ui() { $require_strong_passwords = $this->require_strong_passwords(); ?> - type="radio" id="require-strong-passwords-yes" value="1">
- type="radio" id="require-strong-passwords-no" value="0"> -

+
+ +
+ +

+
'disable-gutenberg-editor', - ) + 'default' ); } @@ -61,10 +58,10 @@ public function gutenberg_settings_ui() { ?>
-

+

-

+ +
'password-protect', - ) + 'default' ); } @@ -61,10 +58,10 @@ public function settings_ui() { ?>
-

+

-

+ +
get_setting( 'enable_support_monitor' ); ?> - type="radio" id="tenup_enable_support_monitor_yes" value="yes">
- type="radio" id="tenup_enable_support_monitor_no" value="no"> +
+ +
+ +
Date: Thu, 18 Dec 2025 13:43:00 +0100 Subject: [PATCH 2/2] Update markup for options on Comments and SSO --- includes/classes/Comments/Comments.php | 56 +++++++++++--------------- includes/classes/SSO/SSO.php | 36 +++++++++++------ 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/includes/classes/Comments/Comments.php b/includes/classes/Comments/Comments.php index c0c4594..1193093 100644 --- a/includes/classes/Comments/Comments.php +++ b/includes/classes/Comments/Comments.php @@ -113,27 +113,18 @@ public function single_site_setting() { public function disable_comments_setting_field_output() { $disable_comments = $this->comments_are_disabled(); ?> - - is_ui_disabled() ); - ?> - /> -
- - is_ui_disabled() ); - ?> - /> - -

+
+ +
+ +

+
- is_ui_disabled() ); - ?> - type="radio" id="tenup_disable_comments_yes" value="yes">
- is_ui_disabled() ); - ?> - type="radio" id="tenup_disable_comments_no" value="no"> +
+ +
+ +
diff --git a/includes/classes/SSO/SSO.php b/includes/classes/SSO/SSO.php index b239001..ddc4bc6 100644 --- a/includes/classes/SSO/SSO.php +++ b/includes/classes/SSO/SSO.php @@ -101,8 +101,17 @@ public function ms_settings() { - type="radio" id="tenup_allow_sso_yes" value="yes">
- type="radio" id="tenup_allow_sso_no" value="no"> +
+ +
+ +
@@ -157,17 +166,18 @@ public function validate_sso_setting( $value ) { public function sso_setting_field_output() { $allow_sso = $this->get_setting(); ?> - - /> -
- - /> - -

+
+ +
+ +

+