diff --git a/admin/class-aesop-core-admin.php b/admin/class-aesop-core-admin.php
index aa64a1af..b44eb3d0 100755
--- a/admin/class-aesop-core-admin.php
+++ b/admin/class-aesop-core-admin.php
@@ -193,13 +193,9 @@ public function generator_popup() {
-
+
-
-
+
+
'
+ security:
};
jQuery.post(ajaxurl, data, function(response) {
diff --git a/admin/includes/components/component-map.php b/admin/includes/components/component-map.php
index 28ed764f..13f561dd 100644
--- a/admin/includes/components/component-map.php
+++ b/admin/includes/components/component-map.php
@@ -140,14 +140,11 @@ public function render_map_box( $post ) {
echo '
';
$ase_map_locations = get_post_meta( $post->ID, 'ase_map_component_locations' );
- $ase_map_start_point = get_post_meta( $post->ID, 'ase_map_component_start_point', true );
- $get_map_zoom = get_post_meta( $post->ID, 'ase_map_component_zoom', true );
+ $ase_map_start_point = get_post_meta( $post->ID, 'ase_map_component_start_point', true );
+ $get_map_zoom = get_post_meta( $post->ID, 'ase_map_component_zoom', true );
- $ase_map_start_point = empty ( $ase_map_start_point ) ? array( 29.76, -95.38 ) : array( $ase_map_start_point['lat'], $ase_map_start_point['lng'] );
- $ase_map_zoom = empty ( $get_map_zoom ) ? 12 : $get_map_zoom;
-
- $ase_map_start_point = json_encode( $ase_map_start_point );
- $ase_map_locations = json_encode( $ase_map_locations );
+ $ase_map_start_point = empty ( $ase_map_start_point ) ? array( 29.76, -95.38 ) : array( $ase_map_start_point['lat'], $ase_map_start_point['lng'] );
+ $ase_map_zoom = empty ( $get_map_zoom ) ? 12 : $get_map_zoom;
$tiles = aesop_map_tile_provider( $post->ID );
@@ -157,7 +154,7 @@ public function render_map_box( $post ) {
jQuery(document).ready(function(){
- var start_point = ;
+ var start_point = ;
var start_zoom = ;
var map = L.map('aesop-map',{
@@ -175,12 +172,12 @@ public function render_map_box( $post ) {
setMapCenter(lat,lng);
});
- L.tileLayer('', {
+ L.tileLayer('', {
maxZoom: 20
}).addTo(map);
- var ase_map_locations =
+ var ase_map_locations =
ase_map_locations.forEach(function(location) {
@@ -411,7 +408,7 @@ public function upgrade_map_notice() {
$out .= '
';
- echo $out;
+ echo wp_kses( $out );
}
}
@@ -490,7 +487,7 @@ public function upgrade_marker_meta() {
$old_start_point = get_post_meta( $id, 'aesop_map_start', true );
if ( ! empty ( $old_start_point ) ) {
- echo $old_start_point;
+ echo esc_html( $old_start_point );
$old_start_point = explode( ',', $old_start_point );
if ( count( $old_start_point ) == 2 ) {
$translated = array();
@@ -534,7 +531,7 @@ public function upgrade_click_handle() {
var data = {
action: 'upgrade_marker_meta',
- security: ''
+ security:
};
jQuery.post(ajaxurl, data, function(response) {
@@ -566,7 +563,7 @@ public function upgrade_mapboxid_notice() {
$out .= '';
- echo $out;
+ echo wp_kses( $out );
}
}
@@ -593,7 +590,7 @@ public function upgrade_mapbox_click_handle() {
var data = {
action: 'upgrade_mapbox',
- security: ''
+ security:
};
$.post(ajaxurl, data, function(response) {
diff --git a/public/includes/components/component-cbox.php b/public/includes/components/component-cbox.php
index 43a6fd56..aa76ada3 100644
--- a/public/includes/components/component-cbox.php
+++ b/public/includes/components/component-cbox.php
@@ -82,7 +82,7 @@ function aesop_content_shortcode( $atts, $content = null ) {
do_action( 'aesop_cbox_before' ); // action
?>
- class="aesop-component aesop-content-component " style="" >
+
class="aesop-component aesop-content-component " style="" >
@@ -120,17 +120,17 @@ function scrollParallax(){
echo do_action( 'aesop_cbox_inside_top' ); // action ?>
-
>
+
>
-
+
-
>
+
>
diff --git a/public/includes/components/component-character.php b/public/includes/components/component-character.php
index 67021175..eb82e26f 100644
--- a/public/includes/components/component-character.php
+++ b/public/includes/components/component-character.php
@@ -47,7 +47,7 @@ function aesop_character_shortcode( $atts, $content = null ) {
-
>
+
>
diff --git a/public/includes/components/component-collections.php b/public/includes/components/component-collections.php
index 73fe912c..885d6b31 100644
--- a/public/includes/components/component-collections.php
+++ b/public/includes/components/component-collections.php
@@ -44,7 +44,7 @@ function aesop_collection_shortcode( $atts ) {
-
+
diff --git a/public/includes/components/component-gallery.php b/public/includes/components/component-gallery.php
index e9a70180..6eec933c 100644
--- a/public/includes/components/component-gallery.php
+++ b/public/includes/components/component-gallery.php
@@ -182,10 +182,10 @@ public function aesop_grid_gallery( $gallery_id, $image_ids, $width ) {
foreach ( $image_ids as $image_id ):
- $getimage = wp_get_attachment_image( $image_id, 'aesop-grid-image', false, array( 'class' => 'aesop-grid-image' ) );
- $getimagesrc = wp_get_attachment_image_src( $image_id, 'full' );
- $img_title = get_post( $image_id )->post_title;
- $caption = get_post( $image_id )->post_excerpt;
+ $getimage = wp_get_attachment_image( $image_id, 'aesop-grid-image', false, array( 'class' => 'aesop-grid-image' ) );
+ $getimagesrc = wp_get_attachment_image_src( $image_id, 'full' );
+ $img_title = get_post( $image_id )->post_title;
+ $caption = get_post( $image_id )->post_excerpt;
?>
@@ -194,7 +194,7 @@ public function aesop_grid_gallery( $gallery_id, $image_ids, $width ) {
-
+
@@ -242,7 +242,7 @@ public function aesop_stacked_gallery( $image_ids, $unique ) {
$caption = get_post( $image_id )->post_excerpt;
?>
-
+
@@ -269,18 +269,18 @@ public function aesop_sequence_gallery( $image_ids ) {
foreach ( $image_ids as $image_id ):
$img = wp_get_attachment_image_src( $image_id, $size, false, '' );
- $alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
- $caption = get_post( $image_id )->post_excerpt;
+ $alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
+ $caption = get_post( $image_id )->post_excerpt;
- $lazy = class_exists( 'AesopLazyLoader' ) && ! is_user_logged_in() ? sprintf( 'src="%s" data-src="%s" class="aesop-sequence-img aesop-lazy-img"', $lazy_holder, esc_url( $img[0] ) ) : sprintf( 'src="%s" class="aesop-sequence-img" ', esc_url( $img[0] ) );
+ $lazy = class_exists( 'AesopLazyLoader' ) && ! is_user_logged_in() ? sprintf( 'src="%s" data-src="%s" class="aesop-sequence-img aesop-lazy-img"', $lazy_holder, esc_url( $img[0] ) ) : sprintf( 'src="%s" class="aesop-sequence-img" ', esc_url( $img[0] ) );
?>
@@ -358,7 +358,7 @@ public function aesop_photoset_gallery( $gallery_id, $image_ids, $width ) {
$lb_link = $lightbox ? sprintf( 'data-highres="%s"', esc_url( $full[0] ) ) : null;
- ?>
data-caption="" title="" alt="">
data-caption="" title="" alt="">
-
class="aesop-article-chapter-wrap default-cover aesop-component " >
+
class="aesop-article-chapter-wrap default-cover aesop-component " >
-
>
+
>
diff --git a/public/includes/components/component-image.php b/public/includes/components/component-image.php
index 1da6983f..60067de5 100644
--- a/public/includes/components/component-image.php
+++ b/public/includes/components/component-image.php
@@ -51,21 +51,21 @@ function aesop_image_shortcode( $atts ) {