| @@ -5,15 +5,18 @@ | ||
| 5 | 5 | * |
| 6 | 6 | * @author Rafe Colton |
| 7 | 7 | * @package Charitable/Templates/Account |
| 8 | 8 | * @since 1.4.0 |
| 9 | - * @version 1.5.7 | |
| 9 | + * @version 1.6.29 | |
| 10 | + * @version 1.8.8.6 | |
| 10 | 11 | */ |
| 11 | 12 | |
| 12 | 13 | // Exit if accessed directly. |
| 13 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 14 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 15 | + exit; | |
| 16 | +} | |
| 14 | 17 | |
| 15 | -$form = $view_args['form']; | |
| 18 | +$charitable_form = $view_args['form']; | |
| 16 | 19 | |
| 17 | 20 | ?> |
| 18 | 21 | <div class="charitable-reset-password-form"> |
| 19 | 22 | <?php |
| @@ -24,9 +27,9 @@ | ||
| 24 | 27 | */ |
| 25 | 28 | do_action( 'charitable_reset_password_before', $view_args ); |
| 26 | 29 | |
| 27 | 30 | ?> |
| 28 | - <form id="resetpassform" class="charitable-form" action="<?php echo site_url( 'wp-login.php?action=resetpass' ); ?>" method="post" autocomplete="off"> | |
| 31 | + <form id="resetpassform" class="charitable-form" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass' ) ); ?>" method="post" autocomplete="off"> | |
| 29 | 32 | <?php |
| 30 | 33 | /** |
| 31 | 34 | * Do something before rendering the form fields. |
| 32 | 35 | * |
| @@ -34,16 +37,16 @@ | ||
| 34 | 37 | * |
| 35 | 38 | * @param Charitable_Form $form The form object. |
| 36 | 39 | * @param array $view_args All args passed to template. |
| 37 | 40 | */ |
| 38 | - do_action( 'charitable_form_before_fields', $form, $view_args ); | |
| 41 | + do_action( 'charitable_form_before_fields', $charitable_form, $view_args ); | |
| 39 | 42 | |
| 40 | 43 | ?> |
| 41 | 44 | <div class="charitable-form-fields cf"> |
| 42 | 45 | <input type="hidden" id="user_login" name="rp_login" value="<?php echo esc_attr( $view_args['login'] ); ?>" autocomplete="off" > |
| 43 | 46 | <input type="hidden" name="rp_key" value="<?php echo esc_attr( $view_args['key'] ); ?>" > |
| 44 | - <?php $form->view()->render() ?> | |
| 45 | - <p class="description"><?php echo wp_get_password_hint(); ?></p> | |
| 47 | + <?php $charitable_form->view()->render(); ?> | |
| 48 | + <p class="description"><?php echo wp_kses_post( wp_get_password_hint() ); ?></p> | |
| 46 | 49 | </div><!-- .charitable-form-fields --> |
| 47 | 50 | <?php |
| 48 | 51 | /** |
| 49 | 52 | * Do something after rendering the form fields. |
| @@ -52,14 +55,13 @@ | ||
| 52 | 55 | * |
| 53 | 56 | * @param Charitable_Form $form The form object. |
| 54 | 57 | * @param array $view_args All args passed to template. |
| 55 | 58 | */ |
| 56 | - do_action( 'charitable_form_after_fields', $form, $view_args ); | |
| 59 | + do_action( 'charitable_form_after_fields', $charitable_form, $view_args ); | |
| 57 | 60 | |
| 58 | 61 | ?> |
| 59 | 62 | <div class="charitable-form-field charitable-submit-field resetpass-submit"> |
| 60 | - <input type="submit" name="submit" class="lostpassword-button" id="resetpass-button" | |
| 61 | - value="<?php _e( 'Reset Password', 'charitable' ); ?>"> | |
| 63 | + <input type="submit" name="submit" class="<?php echo esc_attr( charitable_get_button_class( 'lostpassword' ) ); ?>" id="resetpass-button" value="<?php esc_attr_e( 'Reset Password', 'charitable' ); ?>"> | |
| 62 | 64 | </div> |
| 63 | 65 | </form><!-- #resetpassform --> |
| 64 | 66 | <?php |
| 65 | 67 | /** |