Version Description
Download this release
Release Info
Developer | Nikschavan |
Plugin | Astra Starter Sites |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- astra-sites.php +2 -2
- inc/importers/wxr-importer/class-astra-wxr-importer.php +0 -44
- languages/astra-sites.pot +3 -3
- readme.txt +7 -4
astra-sites.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Astra Starter Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import free sites build with Astra theme.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ASTRA_SITES_NAME' ) ) {
|
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
-
define( 'ASTRA_SITES_VER', '1.2.
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
3 |
* Plugin Name: Astra Starter Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import free sites build with Astra theme.
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
+
define( 'ASTRA_SITES_VER', '1.2.6' );
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
inc/importers/wxr-importer/class-astra-wxr-importer.php
CHANGED
@@ -69,50 +69,6 @@ class Astra_WXR_Importer {
|
|
69 |
add_action( 'wp_ajax_astra-wxr-import', array( $this, 'sse_import' ) );
|
70 |
add_filter( 'wxr_importer.pre_process.user', '__return_null' );
|
71 |
|
72 |
-
// Elementor Import Support.
|
73 |
-
add_filter( 'wp_import_post_meta', array( $this, 'import_post_meta' ) );
|
74 |
-
add_filter( 'wxr_importer.pre_process.post_meta', array( $this, 'pre_process_post_meta' ) );
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Process post meta before WP importer.
|
79 |
-
*
|
80 |
-
* Normalize Elementor post meta on import, We need the `wp_slash` in order
|
81 |
-
* to avoid the unslashing during the `add_post_meta`.
|
82 |
-
*
|
83 |
-
* @since 1.2.5
|
84 |
-
*
|
85 |
-
* @param array $post_meta Post meta.
|
86 |
-
* @return array Updated post meta.
|
87 |
-
*/
|
88 |
-
function import_post_meta( $post_meta ) {
|
89 |
-
foreach ( $post_meta as &$meta ) {
|
90 |
-
if ( '_elementor_data' === $meta['key'] ) {
|
91 |
-
$meta['value'] = wp_slash( $meta['value'] );
|
92 |
-
break;
|
93 |
-
}
|
94 |
-
}
|
95 |
-
|
96 |
-
return $post_meta;
|
97 |
-
}
|
98 |
-
|
99 |
-
/**
|
100 |
-
* Process post meta before WXR importer.
|
101 |
-
*
|
102 |
-
* Normalize Elementor post meta on import with the new WP_importer, We need
|
103 |
-
* the `wp_slash` in order to avoid the unslashing during the `add_post_meta`.
|
104 |
-
*
|
105 |
-
* @since 1.2.5
|
106 |
-
*
|
107 |
-
* @param array $post_meta Post meta.
|
108 |
-
* @return array Updated post meta.
|
109 |
-
*/
|
110 |
-
function pre_process_post_meta( $post_meta ) {
|
111 |
-
if ( '_elementor_data' === $post_meta['key'] ) {
|
112 |
-
$post_meta['value'] = wp_slash( $post_meta['value'] );
|
113 |
-
}
|
114 |
-
|
115 |
-
return $post_meta;
|
116 |
}
|
117 |
|
118 |
/**
|
69 |
add_action( 'wp_ajax_astra-wxr-import', array( $this, 'sse_import' ) );
|
70 |
add_filter( 'wxr_importer.pre_process.user', '__return_null' );
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
languages/astra-sites.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Astra Starter Sites package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Astra Starter Sites 1.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
-
"POT-Creation-Date: 2018-07-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -345,7 +345,7 @@ msgstr ""
|
|
345 |
msgid "No Title"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: inc/importers/wxr-importer/class-astra-wxr-importer.php:
|
349 |
msgid "Import complete!"
|
350 |
msgstr ""
|
351 |
|
2 |
# This file is distributed under the same license as the Astra Starter Sites package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Astra Starter Sites 1.2.6\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
+
"POT-Creation-Date: 2018-07-09 11:10:11+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
345 |
msgid "No Title"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: inc/importers/wxr-importer/class-astra-wxr-importer.php:195
|
349 |
msgid "Import complete!"
|
350 |
msgstr ""
|
351 |
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: https://wpastra.com/pro/
|
|
4 |
Tags: demo, theme demos, one click import
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
-
Tested up to: 4.9.
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -32,8 +32,8 @@ _<a href="https://wpastra.com/ready-websites/">See list of all available sites t
|
|
32 |
== Installation ==
|
33 |
|
34 |
1. Upload the plugin files to the `/wp-content/plugins/astra-sites` directory, or install the plugin through the WordPress plugins screen directly.
|
35 |
-
2. Activate the plugin through the 'Plugins' screen in WordPress
|
36 |
-
3.
|
37 |
|
38 |
== Frequently Asked Questions ==
|
39 |
|
@@ -57,6 +57,9 @@ https://wpastra.com/sites-suggestions/
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
v1.2.5 - 5-July-2018
|
61 |
* Fix: Normalize Elementor post meta by using `wp_slash` to avoid the unslashing data.
|
62 |
|
4 |
Tags: demo, theme demos, one click import
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
+
Tested up to: 4.9.7
|
8 |
+
Stable tag: 1.2.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
32 |
== Installation ==
|
33 |
|
34 |
1. Upload the plugin files to the `/wp-content/plugins/astra-sites` directory, or install the plugin through the WordPress plugins screen directly.
|
35 |
+
2. Activate the plugin through the 'Plugins' screen in WordPress.
|
36 |
+
3. Navigate to Appearance -> Astra Sites to preview and import sites.
|
37 |
|
38 |
== Frequently Asked Questions ==
|
39 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
v1.2.6 - 9-July-2018
|
61 |
+
* Fix: We have added `wp_slash` to normalize the Elementor post meta. Elementor have also normalize it. So, We have avoided `wp_slash` while importing sites.
|
62 |
+
|
63 |
v1.2.5 - 5-July-2018
|
64 |
* Fix: Normalize Elementor post meta by using `wp_slash` to avoid the unslashing data.
|
65 |
|