| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * it easier to override using theme templates. |
| 5 | 5 | * |
| 6 | 6 | * Override this template by copying it to yourtheme/charitable/shortcodes/logout.php |
| 7 | 7 | * |
| 8 | - * @author Eric Daams | |
| 8 | + * @author David Bisset | |
| 9 | 9 | * @package Charitable/Templates/Account |
| 10 | 10 | * @since 1.5.0 |
| 11 | 11 | * @version 1.5.0 |
| 12 | 12 | */ |
| @@ -11,9 +11,11 @@ | ||
| 11 | 11 | * @version 1.5.0 |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | // Exit if accessed directly. |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 15 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 16 | + exit; | |
| 17 | +} | |
| 16 | 18 | |
| 17 | 19 | if ( ! array_key_exists( 'redirect', $view_args ) || ! array_key_exists( 'text', $view_args ) ) { |
| 18 | 20 | return; |
| 19 | 21 | } |
| @@ -18,5 +20,5 @@ | ||
| 18 | 20 | return; |
| 19 | 21 | } |
| 20 | 22 | |
| 21 | 23 | ?> |
| 22 | -<a href="<?php echo wp_logout_url( $view_args['redirect'] ) ?>"><?php echo $view_args['text'] ?></a> | |
| 24 | +<a href="<?php echo esc_url( wp_logout_url( $view_args['redirect'] ) ); ?>"><?php echo esc_html( $view_args['text'] ); ?></a> | |