| @@ -4,18 +4,21 @@ | ||
| 4 | 4 | * it easier to override using theme templates. |
| 5 | 5 | * |
| 6 | 6 | * Override this template by copying it to yourtheme/charitable/shortcodes/login.php |
| 7 | 7 | * |
| 8 | - * @author Eric Daams | |
| 8 | + * @author David Bisset | |
| 9 | 9 | * @package Charitable/Templates/Account |
| 10 | 10 | * @since 1.0.0 |
| 11 | 11 | * @version 1.5.7 |
| 12 | + * @version 1.8.8.6 | |
| 12 | 13 | */ |
| 13 | 14 | |
| 14 | 15 | // Exit if accessed directly. |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 16 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 17 | + exit; | |
| 18 | +} | |
| 16 | 19 | |
| 17 | -$login_form_args = array_key_exists( 'login_form_args', $view_args ) ? $view_args['login_form_args'] : array(); | |
| 20 | +$charitable_login_form_args = array_key_exists( 'login_form_args', $view_args ) ? $view_args['login_form_args'] : array(); | |
| 18 | 21 | |
| 19 | 22 | ?> |
| 20 | 23 | <div class="charitable-login-form"> |
| 21 | 24 | <?php |
| @@ -26,16 +29,16 @@ | ||
| 26 | 29 | * @param array $view_args All args passed to template. |
| 27 | 30 | */ |
| 28 | 31 | do_action( 'charitable_login_form_before', $view_args ); |
| 29 | 32 | |
| 30 | - wp_login_form( $login_form_args ); | |
| 33 | + wp_login_form( $charitable_login_form_args ); | |
| 31 | 34 | |
| 32 | 35 | ?> |
| 33 | 36 | <p> |
| 34 | 37 | <?php if ( array_key_exists( 'registration_link', $view_args ) && $view_args['registration_link'] ) : ?> |
| 35 | - <a href="<?php echo esc_url( $view_args['registration_link'] ) ?>"><?php echo $view_args['registration_link_text'] ?></a> | | |
| 38 | + <a href="<?php echo esc_url( $view_args['registration_link'] ); ?>"><?php echo esc_html( $view_args['registration_link_text'] ); ?></a> | | |
| 36 | 39 | <?php endif ?> |
| 37 | - <a href="<?php echo esc_url( charitable_get_permalink( 'forgot_password_page' ) ) ?>"><?php _e( 'Forgot Password', 'charitable' ) ?></a> | |
| 40 | + <a href="<?php echo esc_url( charitable_get_permalink( 'forgot_password_page' ) ); ?>"><?php esc_html_e( 'Forgot Password', 'charitable' ); ?></a> | |
| 38 | 41 | </p> |
| 39 | 42 | <?php |
| 40 | 43 | |
| 41 | 44 | /** |