PluginProbe
Event Post / 6.1.2
Event Post v6.1.2
6.1.2 6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 All 47 releases
← All changes | inc/wrappers.php +7 -5 5.10.4 → 6.1.2 View file →
@@ -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.4
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 }