added esc_attr
This commit is contained in:
parent
654590da15
commit
9d76e023d4
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user