| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | * @author Rafe Colton |
| 6 | 6 | * @package Charitable/Templates/Account |
| 7 | 7 | * @since 1.4.0 |
| 8 | 8 | * @version 1.6.29 |
| 9 | + * @version 1.8.8.6 | |
| 9 | 10 | */ |
| 10 | 11 | |
| 11 | 12 | // Exit if accessed directly. |
| 12 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -12,9 +13,9 @@ | ||
| 12 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | 14 | exit; |
| 14 | 15 | } |
| 15 | 16 | |
| 16 | -$form = $view_args['form']; | |
| 17 | +$charitable_form = $view_args['form']; | |
| 17 | 18 | |
| 18 | 19 | ?> |
| 19 | 20 | <div class="charitable-forgot-password-form"> |
| 20 | 21 | <?php |
| @@ -27,9 +28,9 @@ | ||
| 27 | 28 | */ |
| 28 | 29 | do_action( 'charitable_forgot_password_before', $view_args ); |
| 29 | 30 | |
| 30 | 31 | ?> |
| 31 | - <form id="lostpasswordform" class="charitable-form" action="<?php echo wp_lostpassword_url(); ?>" method="post"> | |
| 32 | + <form id="lostpasswordform" class="charitable-form" action="<?php echo esc_url( wp_lostpassword_url() ); ?>" method="post"> | |
| 32 | 33 | <?php |
| 33 | 34 | /** |
| 34 | 35 | * Do something before rendering the form fields. |
| 35 | 36 | * |
| @@ -37,13 +38,13 @@ | ||
| 37 | 38 | * |
| 38 | 39 | * @param Charitable_Form $form The form object. |
| 39 | 40 | * @param array $view_args All args passed to template. |
| 40 | 41 | */ |
| 41 | - do_action( 'charitable_form_before_fields', $form, $view_args ); | |
| 42 | + do_action( 'charitable_form_before_fields', $charitable_form, $view_args ); | |
| 42 | 43 | |
| 43 | 44 | ?> |
| 44 | 45 | <div class="charitable-form-fields cf"> |
| 45 | - <?php $form->view()->render(); ?> | |
| 46 | + <?php $charitable_form->view()->render(); ?> | |
| 46 | 47 | </div><!-- .charitable-form-fields --> |
| 47 | 48 | <?php |
| 48 | 49 | /** |
| 49 | 50 | * Do something after rendering the form fields. |
| @@ -52,9 +53,9 @@ | ||
| 52 | 53 | * |
| 53 | 54 | * @param Charitable_Form $form The form object. |
| 54 | 55 | * @param array $view_args All args passed to template. |
| 55 | 56 | */ |
| 56 | - do_action( 'charitable_form_after_fields', $form, $view_args ); | |
| 57 | + do_action( 'charitable_form_after_fields', $charitable_form, $view_args ); | |
| 57 | 58 | |
| 58 | 59 | ?> |
| 59 | 60 | <div class="charitable-form-field charitable-submit-field"> |
| 60 | 61 | <input type="submit" name="submit" class="<?php echo esc_attr( charitable_get_button_class( 'lostpassword' ) ); ?>" value="<?php esc_attr_e( 'Reset Password', 'charitable' ); ?>" /> |