| @@ -2,12 +2,14 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Shortcuts for useful functions in templates |
| 4 | 4 | * |
| 5 | 5 | * @package event-post |
| 6 | - * @version 5.10.3 | |
| 6 | + * @version 6.1.2 | |
| 7 | 7 | * @since 5.0.0 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | + if ( ! defined( 'ABSPATH' ) ) exit; | |
| 11 | + | |
| 10 | 12 | if(!function_exists('get_the_dates')){ |
| 11 | 13 | /** |
| 12 | 14 | * Returns the HTML string of the given event's date range. |
| 13 | 15 | * If no post reference is given, the current post will be used |
| @@ -45,9 +47,9 @@ | ||
| 45 | 47 | * |
| 46 | 48 | * @param mixte $post |
| 47 | 49 | */ |
| 48 | 50 | function the_dates($post=null){ |
| 49 | - echo get_the_dates($post); | |
| 51 | + echo wp_kses(get_the_dates($post), EventPost()->kses_tags); | |
| 50 | 52 | } |
| 51 | 53 | } |
| 52 | 54 | |
| 53 | 55 | if(!function_exists('get_the_date_start')){ |
| @@ -72,9 +74,9 @@ | ||
| 72 | 74 | * |
| 73 | 75 | * @param type $post |
| 74 | 76 | */ |
| 75 | 77 | function the_date_start($post=null){ |
| 76 | - echo get_the_date_start($post); | |
| 78 | + echo wp_kses(get_the_date_start($post), EventPost()->kses_tags); | |
| 77 | 79 | } |
| 78 | 80 | } |
| 79 | 81 | |
| 80 | 82 | if(!function_exists('get_the_date_end')){ |
| @@ -103,9 +105,9 @@ | ||
| 103 | 105 | * |
| 104 | 106 | * @return string |
| 105 | 107 | */ |
| 106 | 108 | function the_date_end($post=null){ |
| 107 | - echo get_the_date_end($post); | |
| 109 | + echo wp_kses(get_the_date_end($post), EventPost()->kses_tags); | |
| 108 | 110 | } |
| 109 | 111 | } |
| 110 | 112 | |
| 111 | 113 | if(!function_exists('get_the_location')){ |
| @@ -129,7 +131,7 @@ | ||
| 129 | 131 | * |
| 130 | 132 | * @param type $post |
| 131 | 133 | */ |
| 132 | 134 | function the_location($post=null){ |
| 133 | - echo get_the_location($post); | |
| 135 | + echo wp_kses(get_the_location($post), EventPost()->kses_tags); | |
| 134 | 136 | } |
| 135 | 137 | } |