diff --git a/inc/mep_functions.php b/inc/mep_functions.php index 83182b3..680b053 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -5,21 +5,11 @@ if (!defined('ABSPATH')) { appsero_init_tracker_mage_eventpress(); - - -// add_action('init','mep_test'); -// function mep_test(){ -// $t = mep_get_page_by_slug('shopXX'); - -// if($t){ -// echo 123; -// print_r($t); -// } - - -// die(); -// } - +function mep_filter_post_name( $data, $postarr, $unsanitized_postarr){ + $data['post_title'] = sanitize_text_field($data['post_title']); + return $data; +} +add_filter( 'wp_insert_post_data', 'mep_filter_post_name',10,3); function mep_get_page_by_slug( $page_slug, $output = OBJECT, $post_type = 'page' ) { @@ -52,13 +42,6 @@ function mep_get_page_by_slug( $page_slug, $output = OBJECT, $post_type = 'page' } - - - - - - - function mep_add_event_into_feed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) $qv['post_type'] = array('mep_events'); diff --git a/readme.txt b/readme.txt index e00428f..49bb848 100644 --- a/readme.txt +++ b/readme.txt @@ -365,6 +365,10 @@ A. you can create support ticket here with problem details with possible screens == Changelog == += 3.9.6 = +* Event Title Sanitize Issue fixed. +22 June 2023* + = 3.9.5 = * Update Release: * Dummy Import Added. diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index 6d4d5ff..52a5c7d 100644 --- a/woocommerce-event-press.php +++ b/woocommerce-event-press.php @@ -3,7 +3,7 @@ * Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce * Plugin URI: http://mage-people.com * Description: A Complete Event Solution for WordPress by MagePeople.. - * Version: 3.9.5 + * Version: 3.9.6 * Author: MagePeople Team * Author URI: http://www.mage-people.com/ * Text Domain: mage-eventpress