Version Description
- 25th February 2022 =
- Fix - WooCommerce Product Categories and its images not importing properly
Download this release
Release Info
Developer | cyberchimps |
Plugin | Responsive Add Ons |
Version | 2.6.3 |
Comparing to | |
See all releases |
Code changes from version 2.6.1 to 2.6.3
includes/importers/batch-processing/class-responsive-ready-sites-batch-processing-elementor.php
CHANGED
@@ -88,9 +88,15 @@ class Responsive_Ready_Sites_Batch_Processing_Elementor extends Source_Local {
|
|
88 |
$data = str_replace( '[wpforms id=\"' . $old_id, '[wpforms id=\"' . $new_id, $data );
|
89 |
}
|
90 |
}
|
|
|
91 |
if ( ! is_array( $data ) ) {
|
92 |
$data = json_decode( $data, true );
|
93 |
}
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
$document = Plugin::$instance->documents->get( $post_id );
|
96 |
if ( $document ) {
|
@@ -123,4 +129,26 @@ class Responsive_Ready_Sites_Batch_Processing_Elementor extends Source_Local {
|
|
123 |
}
|
124 |
}
|
125 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
88 |
$data = str_replace( '[wpforms id=\"' . $old_id, '[wpforms id=\"' . $new_id, $data );
|
89 |
}
|
90 |
}
|
91 |
+
|
92 |
if ( ! is_array( $data ) ) {
|
93 |
$data = json_decode( $data, true );
|
94 |
}
|
95 |
+
|
96 |
+
$term_ids_mapping = get_option( 'responsive_sites_term_ids_mapping', array() );
|
97 |
+
$term_ids_mapping = maybe_unserialize( $term_ids_mapping);
|
98 |
+
|
99 |
+
array_walk( $data, [$this, 'traverse_array_recursive'], $term_ids_mapping);
|
100 |
|
101 |
$document = Plugin::$instance->documents->get( $post_id );
|
102 |
if ( $document ) {
|
129 |
}
|
130 |
}
|
131 |
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Traverse the array recursively based on a condition.
|
135 |
+
*
|
136 |
+
* @since 2.6.1
|
137 |
+
* @param string|array $value Reference Value of the array.
|
138 |
+
* @param string $key Key/Index of the array.
|
139 |
+
* @param array $term_ids_mapping Term IDs mapping array.
|
140 |
+
* @return void
|
141 |
+
*/
|
142 |
+
protected function traverse_array_recursive(&$value, $key, $term_ids_mapping) {
|
143 |
+
// This condition is specifically for Product categories related widget.
|
144 |
+
if ('rea_query_include_categories' !== $key && 'rea_query_exclude_categories' !== $key && is_array($value)) {
|
145 |
+
array_walk( $value, [$this, 'traverse_array_recursive'], $term_ids_mapping);
|
146 |
+
} else {
|
147 |
+
if (is_array($value)) {
|
148 |
+
foreach ($value as $index => $term_id) {
|
149 |
+
$value[$index] = $term_ids_mapping[$term_id];
|
150 |
+
}
|
151 |
+
}
|
152 |
+
}
|
153 |
+
}
|
154 |
}
|
includes/importers/wxr-importer/class-wxr-importer.php
CHANGED
@@ -1608,6 +1608,7 @@ if( ! class_exists( 'WXR_Importer' ) && class_exists( 'WP_Importer' ) ) :
|
|
1608 |
'parent' => 'wp:term_parent',
|
1609 |
'name' => 'wp:term_name',
|
1610 |
'description' => 'wp:term_description',
|
|
|
1611 |
);
|
1612 |
$taxonomy = null;
|
1613 |
|
@@ -1641,8 +1642,28 @@ if( ! class_exists( 'WXR_Importer' ) && class_exists( 'WP_Importer' ) ) :
|
|
1641 |
}
|
1642 |
|
1643 |
$key = array_search( $child->tagName, $tag_name );
|
|
|
1644 |
if ( $key ) {
|
1645 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1646 |
}
|
1647 |
}
|
1648 |
|
@@ -1748,6 +1769,10 @@ if( ! class_exists( 'WXR_Importer' ) && class_exists( 'WP_Importer' ) ) :
|
|
1748 |
|
1749 |
$term_id = $result['term_id'];
|
1750 |
|
|
|
|
|
|
|
|
|
1751 |
$this->mapping['term'][ $mapping_key ] = $term_id;
|
1752 |
$this->mapping['term_id'][ $original_id ] = $term_id;
|
1753 |
|
@@ -1849,6 +1874,10 @@ if( ! class_exists( 'WXR_Importer' ) && class_exists( 'WP_Importer' ) ) :
|
|
1849 |
if ( ! empty( $this->requires_remapping['comment'] ) ) {
|
1850 |
$this->post_process_comments( $this->requires_remapping['comment'] );
|
1851 |
}
|
|
|
|
|
|
|
|
|
1852 |
}
|
1853 |
|
1854 |
protected function post_process_posts( $todo ) {
|
1608 |
'parent' => 'wp:term_parent',
|
1609 |
'name' => 'wp:term_name',
|
1610 |
'description' => 'wp:term_description',
|
1611 |
+
'termmeta' => 'wp:termmeta',
|
1612 |
);
|
1613 |
$taxonomy = null;
|
1614 |
|
1642 |
}
|
1643 |
|
1644 |
$key = array_search( $child->tagName, $tag_name );
|
1645 |
+
|
1646 |
if ( $key ) {
|
1647 |
+
if ('wp:termmeta' === $child->tagName) {
|
1648 |
+
$key = '';
|
1649 |
+
$value = '';
|
1650 |
+
|
1651 |
+
foreach ($child->childNodes as $metadata) {
|
1652 |
+
if ( $metadata->nodeType !== XML_ELEMENT_NODE ) {
|
1653 |
+
continue;
|
1654 |
+
}
|
1655 |
+
|
1656 |
+
if ('wp:meta_key' === $metadata->tagName) {
|
1657 |
+
$key = $metadata->textContent;
|
1658 |
+
} else if ('wp:meta_value' === $metadata->tagName) {
|
1659 |
+
$value = $metadata->textContent;
|
1660 |
+
}
|
1661 |
+
}
|
1662 |
+
|
1663 |
+
$meta[$key] = $value;
|
1664 |
+
} else {
|
1665 |
+
$data[ $key ] = $child->textContent;
|
1666 |
+
}
|
1667 |
}
|
1668 |
}
|
1669 |
|
1769 |
|
1770 |
$term_id = $result['term_id'];
|
1771 |
|
1772 |
+
foreach ( $meta as $key => $value ) {
|
1773 |
+
add_term_meta( $term_id, $key, $value );
|
1774 |
+
}
|
1775 |
+
|
1776 |
$this->mapping['term'][ $mapping_key ] = $term_id;
|
1777 |
$this->mapping['term_id'][ $original_id ] = $term_id;
|
1778 |
|
1874 |
if ( ! empty( $this->requires_remapping['comment'] ) ) {
|
1875 |
$this->post_process_comments( $this->requires_remapping['comment'] );
|
1876 |
}
|
1877 |
+
|
1878 |
+
if ( ! empty( $this->mapping['term_id'] ) && current_user_can( 'activate_plugins' ) ) {
|
1879 |
+
update_option( 'responsive_sites_term_ids_mapping', $this->mapping['term_id'] );
|
1880 |
+
}
|
1881 |
}
|
1882 |
|
1883 |
protected function post_process_posts( $todo ) {
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: cyberchimps
|
|
3 |
Donate Link: https://cyberchimps.com
|
4 |
Tags: elementor, gutenberg, one click demo import, templates, website templates, ready site templates, ready to import websites, elementor landing page templates, template for elementor, free elementor templates download, free landing page templates, ready made websites free, free landing page templates for elementor, free landing page templates for gutenberg, templates for gutenberg
|
5 |
Requires at least: 5.0
|
6 |
-
Tested up to: 5.
|
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 |
|
@@ -182,6 +182,12 @@ With the Pro version you will get Premium templates, Priority support and automa
|
|
182 |
4. Your website is ready
|
183 |
|
184 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
= 2.6.1 - 27th January 2022 =
|
186 |
* Feature - Compatibility with WordPress 5.9
|
187 |
|
3 |
Donate Link: https://cyberchimps.com
|
4 |
Tags: elementor, gutenberg, one click demo import, templates, website templates, ready site templates, ready to import websites, elementor landing page templates, template for elementor, free elementor templates download, free landing page templates, ready made websites free, free landing page templates for elementor, free landing page templates for gutenberg, templates for gutenberg
|
5 |
Requires at least: 5.0
|
6 |
+
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.6.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
182 |
4. Your website is ready
|
183 |
|
184 |
== Changelog ==
|
185 |
+
= 2.6.3 - 25th February 2022 =
|
186 |
+
* Fix - WooCommerce Product Categories and its images not importing properly
|
187 |
+
|
188 |
+
= 2.6.2 - 28th January 2022 =
|
189 |
+
* Fix - Fixed critical error after plugin update v2.6.1
|
190 |
+
|
191 |
= 2.6.1 - 27th January 2022 =
|
192 |
* Feature - Compatibility with WordPress 5.9
|
193 |
|
responsive-add-ons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Responsive Ready Sites Importer
|
4 |
* Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
* Description: Import Responsive Ready Sites that help you launch your website quickly. Just import, update & hit the launch button.
|
6 |
-
* Version: 2.6.
|
7 |
* Author: CyberChimps
|
8 |
* License: GPL2
|
9 |
*
|
@@ -45,7 +45,7 @@ if ( ! defined( 'RESPONSIVE_ADDONS_URI' ) ) {
|
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'RESPONSIVE_ADDONS_VER' ) ) {
|
48 |
-
define( 'RESPONSIVE_ADDONS_VER', '2.6.
|
49 |
}
|
50 |
|
51 |
if ( ! function_exists( 'ra_fs' ) ) {
|
@@ -65,7 +65,7 @@ if ( ! function_exists( 'ra_fs' ) ) {
|
|
65 |
'slug' => 'responsive-add-ons',
|
66 |
'product_name' => 'Responsive Ready Sites Importer',
|
67 |
'module_type' => 'plugin',
|
68 |
-
'version' => '2.6.
|
69 |
'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
|
70 |
'plugin_url' => RESPONSIVE_ADDONS_DIR_URL,
|
71 |
)
|
3 |
* Plugin Name: Responsive Ready Sites Importer
|
4 |
* Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
* Description: Import Responsive Ready Sites that help you launch your website quickly. Just import, update & hit the launch button.
|
6 |
+
* Version: 2.6.3
|
7 |
* Author: CyberChimps
|
8 |
* License: GPL2
|
9 |
*
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'RESPONSIVE_ADDONS_VER' ) ) {
|
48 |
+
define( 'RESPONSIVE_ADDONS_VER', '2.6.3' );
|
49 |
}
|
50 |
|
51 |
if ( ! function_exists( 'ra_fs' ) ) {
|
65 |
'slug' => 'responsive-add-ons',
|
66 |
'product_name' => 'Responsive Ready Sites Importer',
|
67 |
'module_type' => 'plugin',
|
68 |
+
'version' => '2.6.3',
|
69 |
'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
|
70 |
'plugin_url' => RESPONSIVE_ADDONS_DIR_URL,
|
71 |
)
|