Skip to content

Commit

Permalink
Wrap User Profile Access checkbox in a label
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz committed Jan 29, 2024
1 parent 0bd9ee4 commit 8f09e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class.rda-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ private function _output_caps_dropdown() {
* @uses checked() Outputs the checked attribute when the option is enabled.
*/
public function profile_enable_cb() {
printf( '<input name="rda_enable_profile" type="checkbox" value="1" class="code" %1$s/>%2$s',
printf( '<label><input name="rda_enable_profile" type="checkbox" value="1" class="code" %1$s/>%2$s</label>',
checked( esc_attr( $this->settings['enable_profile'] ), true, false ),
/* Translators: The leading space is intentional to space the text away from the checkbox */
esc_html__( ' Allow all users to edit their profiles in the dashboard.', 'remove_dashboard_access' )
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ example.com/options-general.php?page=dashboard-access&rda_debug=1
= 1.1.6 on January 29, 2024 =

* Improved: Added a description that clarifies that the Login Message is only displayed on the WordPress "Log In" screen
* Improved: The User Profile Access text is now a proper label for the checkbox

= 1.1.4 & 1.1.5 on April 18, 2022 =

Remove Dashboard Access is now being maintained by [TrustedLogin](https://www.trustedlogin.com/2022/02/21/remove-dashboard-access/)! Remove Dashboard Access aligns with what we do at TrustedLogin: simply making WordPress more secure. Email any questions to [support@trustedlogin.com](mailto:support@trustedlogin.com).
Expand Down

0 comments on commit 8f09e0a

Please sign in to comment.