← All changes
|
includes/shortcodes/class-charitable-logout-shortcode.php
+8
-4
1.6.6
→
1.8.13
View file →
| @@ -2,17 +2,19 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Logout shortcode class. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Shortcodes/Logout |
| 6 | - * @author Eric Daams | |
| 7 | - * @copyright Copyright (c) 2018, 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.5.0 |
| 10 | - * @version 1.5.7 | |
| 10 | + * @version 1.6.45 | |
| 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_Logout_Shortcode' ) ) : |
| 17 | 19 | |
| 18 | 20 | /** |
| @@ -42,8 +44,10 @@ | ||
| 42 | 44 | 'text' => __( 'Logout', 'charitable' ), |
| 43 | 45 | ); |
| 44 | 46 | |
| 45 | 47 | $args = shortcode_atts( $defaults, $atts, 'charitable_logout' ); |
| 48 | + | |
| 49 | + ob_start(); | |
| 46 | 50 | |
| 47 | 51 | charitable_template( 'shortcodes/logout.php', $args ); |
| 48 | 52 | |
| 49 | 53 | /** |