Skip to content

Commit

Permalink
Add label to pw agree checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
skysarwer committed Oct 12, 2022
1 parent 2e88cdd commit 2b2d2aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion inc/password-protect.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function evn_password_agreement($output, $post) {
$output = '
<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
<p class="is-style-font-semibold">' . __( 'This webpage is password protected. To view it please enter your password below.' ) . '</p>
<p><input type="checkbox" required name="terms">' . __('By entering this password, I agree to not share this webpage, or its content, outside of my organization.') . '</p>
<p><input id="pw-agree" type="checkbox" required name="terms"><label for="pw-agree">' . __('By entering this password, I agree to not share this webpage, or its content, outside of my organization.') . '</label></p>
<p><label for="' . $label . '">' . __( 'Password:' ) . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr_x( 'Enter', 'post password form' ) . '" /></p></form>
';

Expand Down
12 changes: 1 addition & 11 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion style.css.map

Large diffs are not rendered by default.

0 comments on commit 2b2d2aa

Please sign in to comment.