← All changes
|
includes/shortcodes/class-charitable-profile-shortcode.php
+6
-4
1.6.8
→
1.8.13
View file →
| @@ -2,10 +2,10 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Profile shortcode class. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Shortcodes/Profile |
| 6 | - * @author Eric Daams | |
| 7 | - * @copyright Copyright (c) 2019, Studio 164a | |
| 6 | + * @author David Bisset | |
| 7 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 8 | 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | 9 | * @since 1.0.0 |
| 10 | 10 | * @version 1.5.7 |
| 11 | 11 | */ |
| @@ -10,9 +10,11 @@ | ||
| 10 | 10 | * @version 1.5.7 |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // Exit if accessed directly. |
| 14 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 14 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 15 | + exit; | |
| 16 | +} | |
| 15 | 17 | |
| 16 | 18 | if ( ! class_exists( 'Charitable_Profile_Shortcode' ) ) : |
| 17 | 19 | |
| 18 | 20 | /** |
| @@ -46,9 +48,9 @@ | ||
| 46 | 48 | |
| 47 | 49 | if ( false == $args['hide_login'] ) { |
| 48 | 50 | $args['redirect'] = charitable_get_current_url(); |
| 49 | 51 | |
| 50 | - echo Charitable_Login_Shortcode::display( $args ); | |
| 52 | + echo Charitable_Login_Shortcode::display( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 51 | 53 | } |
| 52 | 54 | |
| 53 | 55 | return ob_get_clean(); |
| 54 | 56 | } |