From 603137d97af2481b0e357558db20374318d9ddb7 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Wed, 26 Jul 2023 08:14:43 +0000 Subject: [PATCH] v 3.9.9 release --- inc/template-prts/event_date.php | 4 ++-- inc/template-prts/event_ticket_type.php | 3 ++- inc/template-prts/single-events.php | 4 ++-- lib/classes/class-meta-box.php | 6 +++--- lib/classes/class-taxonomy-edit.php | 2 +- readme.txt | 5 +++++ templates/single/title_only.php | 1 + woocommerce-event-press.php | 2 +- 8 files changed, 17 insertions(+), 10 deletions(-) create mode 100755 templates/single/title_only.php diff --git a/inc/template-prts/event_date.php b/inc/template-prts/event_date.php index a66bcaa..584820f 100755 --- a/inc/template-prts/event_date.php +++ b/inc/template-prts/event_date.php @@ -16,7 +16,7 @@ if (!function_exists('mep_ev_datetime')) { $end_datetime = get_post_meta(get_the_id(),'event_end_datetime',true); //$event_meta['event_end_date'][0] . ' ' . $event_meta['event_end_time'][0]; $end_date = get_post_meta(get_the_id(),'event_end_date',true); //$event_meta['event_end_date'][0]; $end_time = get_post_meta(get_the_id(),'event_end_time',true); //$event_meta['event_end_time'][0]; - $more_date = get_post_meta(get_the_id(),'mep_event_more_date',true) ? maybe_unserialize(get_post_meta(get_the_id(),'mep_event_more_date',true)) : []; //array_key_exists('mep_event_more_date', $event_meta) ? unserialize($event_meta['mep_event_more_date'][0]) : array(); + $more_date = get_post_meta(get_the_id(),'mep_event_more_date',true) ? maybe_unserialize(get_post_meta(get_the_id(),'mep_event_more_date',true)) : []; $recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no'; $mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no'; $cn = 1; @@ -91,7 +91,7 @@ if (!function_exists('mep_date_in_default_theme')) { // $more_date = array(get_post_meta($event_id, 'event_start_date', true) . ' ' . get_post_meta($event_id, 'event_start_time', true)); $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; $mep_show_upcoming_event = get_post_meta($event_id, 'mep_show_upcoming_event', true) ? get_post_meta($event_id, 'mep_show_upcoming_event', true) : 'no'; - $_more_date = get_post_meta($event_id, 'mep_event_more_date', true) ? unserialize(get_post_meta($event_id, 'mep_event_more_date', true)) : array(); + $_more_date = get_post_meta($event_id, 'mep_event_more_date', true) ? maybe_unserialize(get_post_meta($event_id, 'mep_event_more_date', true)) : array(); $more_date = apply_filters('mep_event_date_more_date_array',$_more_date,$event_id); $show_end_date = get_post_meta($event_id, 'mep_show_end_datetime', true) ? get_post_meta($event_id, 'mep_show_end_datetime', true) : 'yes'; $end_date_display_status = apply_filters('mep_event_datetime_status',$show_end_date,$event_id); diff --git a/inc/template-prts/event_ticket_type.php b/inc/template-prts/event_ticket_type.php index 0fe9fc5..bd7c1ae 100755 --- a/inc/template-prts/event_ticket_type.php +++ b/inc/template-prts/event_ticket_type.php @@ -7,7 +7,8 @@ add_action('mep_event_ticket_types', 'mep_ev_ticket_type',10,3); if (!function_exists('mep_ev_ticket_type')) { function mep_ev_ticket_type($post_id,$ticket_type_label,$select_date_label) { - global $post, $product, $event_meta; + global $post, $product, $event_meta; + $event_meta = get_post_custom($post_id); $count = 1; ob_start(); $mep_available_seat = array_key_exists('mep_available_seat', $event_meta) ? $event_meta['mep_available_seat'][0] : 'on'; diff --git a/inc/template-prts/single-events.php b/inc/template-prts/single-events.php index 7687c19..df81763 100644 --- a/inc/template-prts/single-events.php +++ b/inc/template-prts/single-events.php @@ -90,8 +90,8 @@ if (post_password_required()) { get_post_id(), $option['id'], true); if (is_serialized($option_value)) { - $option_value = unserialize($option_value); + $option_value = maybe_unserialize($option_value); } $option['value'] = $option_value; $this->field_generator($option) @@ -260,12 +260,12 @@ if (!class_exists('AddMetaBox')) { $prent_option_value = get_post_meta($post_id, $prent_option_name, true); - $prent_option_value = is_serialized($prent_option_value) ? unserialize($prent_option_value) : array(); + $prent_option_value = is_serialized($prent_option_value) ? maybe_unserialize($prent_option_value) : array(); $option['value'] = isset($prent_option_value[$id]) ? $prent_option_value[$id] : ''; else : $option['field_name'] = $id; $option_value = get_post_meta($post_id, $id, true); - $option['value'] = is_serialized($option_value) ? unserialize($option_value) : $option_value; + $option['value'] = is_serialized($option_value) ? maybe_unserialize($option_value) : $option_value; endif; diff --git a/lib/classes/class-taxonomy-edit.php b/lib/classes/class-taxonomy-edit.php index c980ee1..c9d7935 100755 --- a/lib/classes/class-taxonomy-edit.php +++ b/lib/classes/class-taxonomy-edit.php @@ -74,7 +74,7 @@ if (!class_exists('TaxonomyEdit')) { if (empty($id)) return; $option['field_name'] = $id; $option_value = get_term_meta($term_id, $id, true); - $option['value'] = is_serialized($option_value) ? unserialize($option_value) : $option_value; + $option['value'] = is_serialized($option_value) ? maybe_unserialize($option_value) : $option_value; if (sizeof($option) > 0 && isset($option['type'])) { echo mep_field_generator($option['type'], $option); diff --git a/readme.txt b/readme.txt index 83f71a5..9f5dda4 100644 --- a/readme.txt +++ b/readme.txt @@ -365,6 +365,11 @@ A. you can create support ticket here with problem details with possible screens == Changelog == += 3.9.8 = +* Broken issue fixed in Virtual Template +* Bug Fixed. + 26 July 2023* + = 3.9.8 = * Header & Footer issue solved in Block Themes * Bug Fixed. diff --git a/templates/single/title_only.php b/templates/single/title_only.php new file mode 100755 index 0000000..a124e0a --- /dev/null +++ b/templates/single/title_only.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index 2e1c3b8..b38254c 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.8 + * Version: 3.9.9 * Author: MagePeople Team * Author URI: http://www.mage-people.com/ * Text Domain: mage-eventpress