This commit is contained in:
magepeopleteam 2023-07-03 07:07:49 +00:00
parent 724494c58a
commit 880efb5bf8
3 changed files with 11 additions and 2 deletions

View File

@ -4162,7 +4162,11 @@ function mep_get_price_excluding_tax($event, $price, $args = array()) {
function mep_filter_post_name( $data, $postarr, $unsanitized_postarr){ function mep_filter_post_name( $data, $postarr, $unsanitized_postarr){
$data['post_title'] = sanitize_text_field($data['post_title']); $post_id = $postarr['ID'];
$post_type = get_post_type($post_id);
if ($post_type === 'mep_events'){
$data['post_title'] = wp_kses_post($data['post_title']);
}
return $data; return $data;
} }
add_filter( 'wp_insert_post_data', 'mep_filter_post_name',10,3); add_filter( 'wp_insert_post_data', 'mep_filter_post_name',10,3);

View File

@ -365,6 +365,11 @@ A. you can create support ticket here with problem details with possible screens
== Changelog == == Changelog ==
= 3.9.7 =
* Event Title Sanitize Issue fixed with Span and other allowed tags.
22 June 2023*
= 3.9.6 = = 3.9.6 =
* Event Title Sanitize Issue fixed. * Event Title Sanitize Issue fixed.
22 June 2023* 22 June 2023*

View File

@ -3,7 +3,7 @@
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce * Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
* Plugin URI: http://mage-people.com * Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople.. * Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 3.9.6 * Version: 3.9.7
* Author: MagePeople Team * Author: MagePeople Team
* Author URI: http://www.mage-people.com/ * Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress * Text Domain: mage-eventpress