PluginProbe
Passster – Password Protect Pages and Content / 4.3.16
Passster – Password Protect Pages and Content v4.3.16
4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.15 All 48 releases
← All changes | inc/class-ps-form.php +3 -2 4.2.124.3.16 View file →
@@ -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 ) {