HT Mega – Addons for Elementor Page Builder ( Elementor Addons, Post Grid, Post Slider, Post Carousel, Mega Menu, Elementor Widgets, Elementor Templates, Accordion, Forms, Tables) - Version 1.7.0

Version Description

Download this release

Release Info

Developer devitemsllc
Plugin Icon 128x128 HT Mega – Addons for Elementor Page Builder ( Elementor Addons, Post Grid, Post Slider, Post Carousel, Mega Menu, Elementor Widgets, Elementor Templates, Accordion, Forms, Tables)
Version 1.7.0
Comparing to
See all releases

Code changes from version 1.6.9 to 1.7.0

htmega_addons_elementor.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: http://demo.wphash.com/htmega/
6
  * Author: HasThemes
7
  * Author URI: https://hasthemes.com/
8
- * Version: 1.6.9
9
  * License: GPL2
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: htmega-addons
@@ -15,7 +15,7 @@
15
  */
16
 
17
  if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
18
- define( 'HTMEGA_VERSION', '1.6.9' );
19
  define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
20
  define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
21
  define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
5
  * Plugin URI: http://demo.wphash.com/htmega/
6
  * Author: HasThemes
7
  * Author URI: https://hasthemes.com/
8
+ * Version: 1.7.0
9
  * License: GPL2
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: htmega-addons
15
  */
16
 
17
  if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
18
+ define( 'HTMEGA_VERSION', '1.7.0' );
19
  define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
20
  define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
21
  define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
includes/class.post-duplicator.php CHANGED
@@ -127,17 +127,26 @@ class HTMega_Post_Dupicator{
127
  /*
128
  * duplicate all post meta just in two SQL queries
129
  */
130
- $post_meta_infos = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->postmeta WHERE post_id=$post_id");
 
 
131
  if ( is_array( $post_meta_infos ) && count( $post_meta_infos ) !=0) {
132
- $sql_query = "INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) ";
 
 
133
  foreach ($post_meta_infos as $meta_info) {
134
- $meta_key = $meta_info->meta_key;
 
135
  if( $meta_key == '_wp_old_slug' ) continue;
136
- $meta_value = addslashes($meta_info->meta_value);
137
- $sql_query_sel[]= "SELECT $new_post_id, '$meta_key', '$meta_value'";
 
 
 
 
138
  }
139
- $sql_query.= implode(" UNION ALL ", $sql_query_sel);
140
- $wpdb->query($sql_query);
141
  }
142
  }
143
  $redirect_to = admin_url( 'post.php?action=edit&post=' . $new_post_id );
127
  /*
128
  * duplicate all post meta just in two SQL queries
129
  */
130
+ $post_meta_infos = $wpdb->get_results(
131
+ $wpdb->prepare("SELECT meta_key, meta_value FROM $wpdb->postmeta WHERE post_id=%d",$post_id)
132
+ );
133
  if ( is_array( $post_meta_infos ) && count( $post_meta_infos ) !=0) {
134
+
135
+ $sql_query = "INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) VALUES ";
136
+
137
  foreach ($post_meta_infos as $meta_info) {
138
+
139
+ $meta_key = esc_sql($meta_info->meta_key);
140
  if( $meta_key == '_wp_old_slug' ) continue;
141
+ $meta_value = $meta_info->meta_value;
142
+ $sql_query_val[]= "( %d, %s, %s )";
143
+ $sql_query_sel[]= $new_post_id;
144
+ $sql_query_sel[]= $meta_key;
145
+ $sql_query_sel[]= $meta_value;
146
+
147
  }
148
+ $sql_query.= implode(",", $sql_query_val). ';';
149
+ $wpdb->query( $wpdb->prepare( $sql_query, $sql_query_sel ) );
150
  }
151
  }
152
  $redirect_to = admin_url( 'post.php?action=edit&post=' . $new_post_id );
includes/widgets/htmega_post_carousel.php CHANGED
@@ -1770,7 +1770,7 @@ class HTMega_Elementor_Widget_Post_Carousel extends Widget_Base {
1770
 
1771
  <?php
1772
  if( $settings['show_content'] == 'yes' ){
1773
- echo '<p>'.wp_trim_words( get_the_content(), $settings['content_length'], '' ).'</p>';
1774
  }
1775
  ?>
1776
 
1770
 
1771
  <?php
1772
  if( $settings['show_content'] == 'yes' ){
1773
+ echo '<p>'.wp_trim_words( strip_shortcodes( get_the_content() ), $settings['content_length'], '' ).'</p>';
1774
  }
1775
  ?>
1776
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: hasthemes, htplugins, devitemsllc, tarekht
3
  Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
4
  Requires at least: 4.7
5
  Tested up to: 5.8
6
- Stable tag: 1.6.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -170,6 +170,10 @@ Feel free to [Contact us](https://hasthemes.com/contact-us/)
170
  Visit [HasThemes](https://hasthemes.com/) for more details about HTML, Shopify and WordPress products and services.
171
 
172
  == Changelog ==
 
 
 
 
173
  = Version: 1.6.9 - Date: 2021-12-07 =
174
  * Fixed: Image loading issue of Gallery Justify addon
175
  * Fixed: Empty product error of add to cart addon
3
  Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
4
  Requires at least: 4.7
5
  Tested up to: 5.8
6
+ Stable tag: 1.7.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
170
  Visit [HasThemes](https://hasthemes.com/) for more details about HTML, Shopify and WordPress products and services.
171
 
172
  == Changelog ==
173
+ = Version: 1.7.0 - Date: 2021-12-19 =
174
+ * Fixed: post duplicator security issue
175
+ * Fixed: remove shortcode appearance in post carousel content
176
+
177
  = Version: 1.6.9 - Date: 2021-12-07 =
178
  * Fixed: Image loading issue of Gallery Justify addon
179
  * Fixed: Empty product error of add to cart addon