Version Description
- 28th November 2022 =
- Fix - Improved code as per WordPress and PHPCS standards
Download this release
Release Info
Developer | cyberchimps |
Plugin | Responsive Add Ons |
Version | 2.6.9 |
Comparing to | |
See all releases |
Code changes from version 2.6.8 to 2.6.9
includes/importers/class-responsive-ready-sites-importer.php
CHANGED
@@ -432,7 +432,7 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Importer' ) ) :
|
|
432 |
wp_send_json_error( __( 'You are not allowed to perform this action', 'responsive-addons' ) );
|
433 |
}
|
434 |
|
435 |
-
$options_data = ( isset( $_POST['options_data'] ) ) ? (array) json_decode( stripcslashes( $_POST['options_data'] ), 1 ) : '';
|
436 |
|
437 |
if ( ! empty( $options_data ) ) {
|
438 |
|
@@ -846,7 +846,25 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Importer' ) ) :
|
|
846 |
);
|
847 |
|
848 |
$new_page_id = wp_insert_post( $post_args );
|
849 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
850 |
|
851 |
if ( ! empty( $post_meta ) ) {
|
852 |
$this->import_post_meta( $new_page_id, $post_meta );
|
432 |
wp_send_json_error( __( 'You are not allowed to perform this action', 'responsive-addons' ) );
|
433 |
}
|
434 |
|
435 |
+
$options_data = ( isset( $_POST['options_data'] ) ) ? (array) json_decode( stripcslashes( wp_kses_post( wp_unslash( $_POST['options_data'] ) ) ), 1 ) : '';
|
436 |
|
437 |
if ( ! empty( $options_data ) ) {
|
438 |
|
846 |
);
|
847 |
|
848 |
$new_page_id = wp_insert_post( $post_args );
|
849 |
+
|
850 |
+
$wp_page_template = isset( $_POST['data']['post-meta']['_wp_page_template'] ) ? sanitize_text_field( wp_unslash( $_POST['data']['post-meta']['_wp_page_template'] ) ) : '';
|
851 |
+
$elementor_edit_mode = isset( $_POST['data']['post-meta']['_elementor_edit_mode'] ) ? sanitize_key( wp_unslash( $_POST['data']['post-meta']['_elementor_edit_mode'] ) ) : '';
|
852 |
+
$elementor_template_type = isset( $_POST['data']['post-meta']['_elementor_template_type'] ) ? sanitize_key( wp_unslash( $_POST['data']['post-meta']['_elementor_template_type'] ) ) : '';
|
853 |
+
$elementor_version = isset( $_POST['data']['post-meta']['_elementor_version'] ) ? sanitize_text_field( wp_unslash( $_POST['data']['post-meta']['_elementor_version'] ) ) : '';
|
854 |
+
$elementor_css = isset( $_POST['data']['post-meta']['_elementor_css'] ) ? wp_kses_post( wp_unslash( $_POST['data']['post-meta']['_elementor_css'] ) ) : '';
|
855 |
+
$elementor_css = str_replace( '>', '>', $elementor_css );
|
856 |
+
$elementor_data = isset( $_POST['data']['post-meta']['_elementor_data'] ) ? wp_kses_post( $_POST['data']['post-meta']['_elementor_data'] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash
|
857 |
+
$elementor_controls_usage = isset( $_POST['data']['post-meta']['_elementor_controls_usage'] ) ? wp_kses_post( wp_unslash( $_POST['data']['post-meta']['_elementor_controls_usage'] ) ) : '';
|
858 |
+
|
859 |
+
$post_meta = array(
|
860 |
+
'_wp_page_template' => $wp_page_template,
|
861 |
+
'_elementor_edit_mode' => $elementor_edit_mode,
|
862 |
+
'_elementor_template_type' => $elementor_template_type,
|
863 |
+
'_elementor_version' => $elementor_version,
|
864 |
+
'_elementor_css' => $elementor_css,
|
865 |
+
'_elementor_data' => $elementor_data,
|
866 |
+
'_elementor_controls_usage' => $elementor_controls_usage,
|
867 |
+
);
|
868 |
|
869 |
if ( ! empty( $post_meta ) ) {
|
870 |
$this->import_post_meta( $new_page_id, $post_meta );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: elementor templates, block templates, one click demo import, readymade web
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 6.1.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -183,6 +183,9 @@ With the Pro version you will get Premium templates, Priority support and automa
|
|
183 |
|
184 |
== Changelog ==
|
185 |
|
|
|
|
|
|
|
186 |
= 2.6.8 - 24th November 2022 =
|
187 |
* Fix - Improved code as per WordPress and PHPCS standards
|
188 |
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 6.1.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.6.9
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
183 |
|
184 |
== Changelog ==
|
185 |
|
186 |
+
= 2.6.9 - 28th November 2022 =
|
187 |
+
* Fix - Improved code as per WordPress and PHPCS standards
|
188 |
+
|
189 |
= 2.6.8 - 24th November 2022 =
|
190 |
* Fix - Improved code as per WordPress and PHPCS standards
|
191 |
|
responsive-add-ons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Responsive Starter Templates
|
4 |
* Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
* Description: Responsive Starter Templates offers you a library of premium Elementor and block templates so you can launch your website quickly. Just select your favorite website template, click import and launch your website.
|
6 |
-
* Version: 2.6.
|
7 |
* Author: CyberChimps
|
8 |
* Author URI: https://cyberchimps.com
|
9 |
* License: GPL2
|
@@ -46,7 +46,7 @@ if ( ! defined( 'RESPONSIVE_ADDONS_URI' ) ) {
|
|
46 |
}
|
47 |
|
48 |
if ( ! defined( 'RESPONSIVE_ADDONS_VER' ) ) {
|
49 |
-
define( 'RESPONSIVE_ADDONS_VER', '2.6.
|
50 |
}
|
51 |
|
52 |
/**
|
3 |
* Plugin Name: Responsive Starter Templates
|
4 |
* Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
* Description: Responsive Starter Templates offers you a library of premium Elementor and block templates so you can launch your website quickly. Just select your favorite website template, click import and launch your website.
|
6 |
+
* Version: 2.6.9
|
7 |
* Author: CyberChimps
|
8 |
* Author URI: https://cyberchimps.com
|
9 |
* License: GPL2
|
46 |
}
|
47 |
|
48 |
if ( ! defined( 'RESPONSIVE_ADDONS_VER' ) ) {
|
49 |
+
define( 'RESPONSIVE_ADDONS_VER', '2.6.9' );
|
50 |
}
|
51 |
|
52 |
/**
|