diff --git a/inc/mep_enque.php b/inc/mep_enque.php index 304a661..17489e7 100644 --- a/inc/mep_enque.php +++ b/inc/mep_enque.php @@ -26,7 +26,7 @@ function mep_add_admin_scripts($hook) * If Your Save Google API Then Load the Google Map API */ if ($user_api) { - wp_enqueue_script('gmap-libs', 'https://maps.googleapis.com/maps/api/js?key=' . $user_api . '&libraries=places&callback=initMap', array('jquery', 'gmap-scripts'), 1, true); + wp_enqueue_script('gmap-libs', 'https://maps.googleapis.com/maps/api/js?key=' . esc_attr($user_api) . '&libraries=places&callback=initMap', array('jquery', 'gmap-scripts'), 1, true); } /** diff --git a/inc/mep_extra_price.php b/inc/mep_extra_price.php index 69220db..3fb906f 100644 --- a/inc/mep_extra_price.php +++ b/inc/mep_extra_price.php @@ -280,7 +280,7 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value { $eid = array_key_exists('event_id', $values) ? $values['event_id'] : 0; //$values['event_id']; - $start_time = get_post_meta($eid, 'event_start_time', true); + $start_time = get_post_meta($eid, 'event_start_time', true); $location_text = mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) ? mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) : 'Location'; $date_text = mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) ? mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) : 'Date'; if (get_post_type($eid) == 'mep_events') {