PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
← All changes | templates/account/reset-password.php +22 -15 1.6.8 → 1.8.13 View file →
@@ -8,41 +8,45 @@
8 8 * @author Rafe Colton
9 9 * @package Charitable/Templates/Account
10 10 * @since 1.4.0
11 11 * @version 1.5.0
12 + * @version 1.8.8.6
12 13 */
13 14
14 -if ( ! defined( 'ABSPATH' ) ) {exit; } // Exit if accessed directly
15 +if ( ! defined( 'ABSPATH' ) ) {
16 + exit; } // Exit if accessed directly
15 17
16 18 /**
17 - * @var Charitable_Reset_Password_Form
19 + * Reset password form.
20 + *
21 + * @var Charitable_Reset_Password_Form
18 22 */
19 -$form = $view_args['form'];
23 +$charitable_form = $view_args['form'];
20 24
21 25 ?>
22 26 <div class="charitable-reset-password-form">
23 - <?php
24 - if ( $form->has_key() ) :
27 + <?php
28 + if ( $charitable_form->has_key() ) :
25 29
26 30 /**
27 31 * @hook charitable_reset_password_before
28 32 */
29 33 do_action( 'charitable_reset_password_before' );
30 -
34 +
31 35 ?>
32 36 <form id="resetpassform" class="charitable-form" method="post" autocomplete="off">
33 37
34 - <?php do_action( 'charitable_form_before_fields', $form ); ?>
38 + <?php do_action( 'charitable_form_before_fields', $charitable_form ); ?>
35 39
36 40 <div class="charitable-form-fields cf">
37 - <?php $form->view()->render() ?>
38 - <p class="description"><?php echo wp_get_password_hint() ?></p>
41 + <?php $charitable_form->view()->render(); ?>
42 + <p class="description"><?php echo wp_get_password_hint(); // phpcs:ignore ?></p>
39 43 </div><!-- .charitable-form-fields -->
40 44
41 - <?php do_action( 'charitable_form_after_fields', $form ); ?>
45 + <?php do_action( 'charitable_form_after_fields', $charitable_form ); ?>
42 46
43 47 <div class="charitable-form-field charitable-submit-field resetpass-submit">
44 - <button id="resetpass-button" class="button button-primary lostpassword-button" type="submit"><?php _e( 'Reset Password', 'charitable' ) ?></button>
48 + <button id="resetpass-button" class="button button-primary lostpassword-button" type="submit"><?php esc_html_e( 'Reset Password', 'charitable' ); ?></button>
45 49 </div>
46 50 </form>
47 51 <?php
48 52
@@ -52,14 +56,17 @@
52 56 do_action( 'charitable_reset_password_after' );
53 57
54 58 else :
55 59
56 - $errors = charitable_get_notices()->get_errors();
60 + $errors = charitable_get_notices()->get_errors(); // phpcs:ignore
57 61
58 62 if ( ! empty( $errors ) ) {
59 - charitable_template( 'form-fields/errors.php', array(
60 - 'errors' => $errors,
61 - ) );
63 + charitable_template(
64 + 'form-fields/errors.php',
65 + array(
66 + 'errors' => $errors,
67 + )
68 + );
62 69 }
63 70
64 71 endif;
65 72