| @@ -36,11 +36,12 @@ | ||
| 36 | 36 | $password_form_placeholders = array( |
| 37 | 37 | '[PASSSTER_AUTH]' => 'passster_password', |
| 38 | 38 | '[PS_AJAX_LOADER]' => PASSSTER_URL . '/assets/public/ps-loader.svg', |
| 39 | 39 | ); |
| 40 | - $show_password = $options['show_password']; | |
| 40 | + $show_password = $options['show_password'] ?? false; | |
| 41 | + $show_password_label = $options['show_password_label'] ?? __( 'Show Password', 'content-protector' ); | |
| 41 | 42 | if ( $show_password ) { |
| 42 | - $password_form_placeholders['[PASSSTER_SHOW_PASSWORD]'] = '<label for="passster-password-hint"><input name="passster-password-hint" id="passster-password-hint" type="checkbox" onclick="showPassword()"/> ' . esc_html__( 'Show Password', 'content-protector' ) . '</label>'; | |
| 43 | + $password_form_placeholders['[PASSSTER_SHOW_PASSWORD]'] = '<label for="passster-password-hint"><input name="passster-password-hint" id="passster-password-hint" type="checkbox" onclick="showPassword()"/> ' . esc_html( $show_password_label ) . '</label>'; | |
| 43 | 44 | } else { |
| 44 | 45 | $password_form_placeholders['[PASSSTER_SHOW_PASSWORD]'] = ''; |
| 45 | 46 | } |
| 46 | 47 | foreach ( $password_form_placeholders as $placeholder => $string ) { |