Astra Starter Sites - Version 1.4.3

Version Description

Download this release

Release Info

Developer brainstormworg
Plugin Icon Astra Starter Sites
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

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.4.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.4.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.4.3
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.4.3' );
23
}
24
25
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/classes/class-astra-sites-importer.php CHANGED
@@ -620,11 +620,6 @@ if ( ! class_exists( 'Astra_Sites_Importer' ) ) :
620
*/
621
public function clear_cache() {
622
623
- // Clear 'Elementor' file cache.
624
- if ( class_exists( '\Elementor\Plugin' ) ) {
625
- Elementor\Plugin::$instance->posts_css_manager->clear_cache();
626
- }
627
-
628
// Clear 'Builder Builder' cache.
629
if ( is_callable( 'FLBuilderModel::delete_asset_cache_for_all_posts' ) ) {
630
FLBuilderModel::delete_asset_cache_for_all_posts();
620
*/
621
public function clear_cache() {
622
623
// Clear 'Builder Builder' cache.
624
if ( is_callable( 'FLBuilderModel::delete_asset_cache_for_all_posts' ) ) {
625
FLBuilderModel::delete_asset_cache_for_all_posts();
inc/classes/class-astra-sites-wp-cli.php CHANGED
@@ -12,7 +12,7 @@
12
if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' ) ) :
13
14
/**
15
- * Astra Sites
16
*
17
* @since 1.4.0
18
*/
@@ -232,19 +232,7 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
232
* Import Content from XML/WXR.
233
*/
234
if ( isset( $demo_data['astra-site-wxr-path'] ) && ! empty( $demo_data['astra-site-wxr-path'] ) ) {
235
-
236
- // Download XML file.
237
- /* translators: %s is the XML file URL. */
238
- WP_CLI::line( sprintf( __( 'Downloading %s', 'astra-sites' ), $demo_data['astra-site-wxr-path'] ) );
239
- $xml_path = Astra_Sites_Helper::download_file( $demo_data['astra-site-wxr-path'] );
240
-
241
- if ( $xml_path['success'] && isset( $xml_path['data']['file'] ) ) {
242
- WP_CLI::line( __( 'Importing WXR..', 'astra-sites' ) );
243
- Astra_WXR_Importer::instance()->sse_import( $xml_path['data']['file'] );
244
- } else {
245
- /* translators: %s is error message. */
246
- WP_CLI::line( printf( __( 'WXR file Download Failed. Error %s', 'astra-sites' ), $xml_path['data'] ) );
247
- }
248
}
249
250
/**
@@ -266,12 +254,54 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
266
/**
267
* Import End.
268
*/
269
- Astra_Sites_Importer::get_instance()->import_end();
270
271
/* translators: %s is the site URL. */
272
WP_CLI::line( sprintf( __( "Site Imported Successfully!\nVisit: %s", 'astra-sites' ), $site_url ) );
273
}
274
275
/**
276
* Reset
277
*
@@ -465,18 +495,27 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
465
$response = $this->get_term_ids( 'astra-site-page-builder', $page_builder, $args );
466
$args = $response['args'];
467
$page_builders = $response['terms'];
468
469
// Add type.
470
$type = isset( $assoc_args['type'] ) ? $assoc_args['type'] : '';
471
$response = $this->get_term_ids( 'astra-sites-type', $type, $args );
472
$args = $response['args'];
473
$types = $response['terms'];
474
475
// Add categories.
476
$category = isset( $assoc_args['category'] ) ? $assoc_args['category'] : '';
477
$response = $this->get_term_ids( 'astra-site-category', $category, $args );
478
$args = $response['args'];
479
$categories = $response['terms'];
480
481
// Site list.
482
$sites = (array) $this->get_posts( 'astra-sites', $args, $force );
@@ -568,8 +607,8 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
568
);
569
$args = wp_parse_args( (array) $args, $defaults );
570
571
$terms_data = get_transient( 'astra-sites-term-' . $term_slug );
572
-
573
if ( empty( $terms_data ) || $force ) {
574
$url = add_query_arg( $args, Astra_Sites::get_instance()->get_api_url() . $term_slug );
575
@@ -577,7 +616,6 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
577
'timeout' => 60,
578
);
579
580
- $success = false;
581
$response = wp_remote_get( $url, $api_args );
582
if ( ! is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) === 200 ) {
583
$request_term_data = json_decode( wp_remote_retrieve_body( $response ), true );
@@ -588,11 +626,14 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
588
foreach ( $request_term_data as $key => $request_term ) {
589
$new_terms_data[ $request_term['id'] ] = $request_term['name'];
590
}
591
- set_transient( 'astra-sites-term-' . $term_slug, $new_terms_data, WEEK_IN_SECONDS );
592
}
593
}
594
- } else {
595
- $success = true;
596
}
597
598
return array(
12
if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' ) ) :
13
14
/**
15
+ * WP-Cli commands to manage Astra Starter Sites.
16
*
17
* @since 1.4.0
18
*/
232
* Import Content from XML/WXR.
233
*/
234
if ( isset( $demo_data['astra-site-wxr-path'] ) && ! empty( $demo_data['astra-site-wxr-path'] ) ) {
235
+ WP_CLI::runcommand( 'astra-sites import_wxr ' . $demo_data['astra-site-wxr-path'] );
236
}
237
238
/**
254
/**
255
* Import End.
256
*/
257
+ WP_CLI::runcommand( 'astra-sites import_end' );
258
259
/* translators: %s is the site URL. */
260
WP_CLI::line( sprintf( __( "Site Imported Successfully!\nVisit: %s", 'astra-sites' ), $site_url ) );
261
}
262
263
+ /**
264
+ * Import End
265
+ *
266
+ * @since 1.4.3
267
+ * @return void
268
+ */
269
+ function import_end() {
270
+ Astra_Sites_Importer::get_instance()->import_end();
271
+ }
272
+
273
+ /**
274
+ * Import form XML.
275
+ *
276
+ * Use: `wp astra-sites import_wxr`
277
+ *
278
+ * @since 1.4.3
279
+ * @param array $args Arguments.
280
+ * @param array $assoc_args Associated Arguments.
281
+ * @return void.
282
+ */
283
+ public function import_wxr( $args = array(), $assoc_args = array() ) {
284
+
285
+ // Valid site ID?
286
+ $url = isset( $args[0] ) ? esc_url_raw( $args[0] ) : '';
287
+ if ( empty( $url ) ) {
288
+ WP_CLI::error( __( 'Invalid XML URL.', 'astra-sites' ) );
289
+ }
290
+
291
+ // Download XML file.
292
+ /* translators: %s is the XML file URL. */
293
+ WP_CLI::line( sprintf( __( 'Downloading %s', 'astra-sites' ), $url ) );
294
+ $xml_path = Astra_Sites_Helper::download_file( $url );
295
+
296
+ if ( $xml_path['success'] && isset( $xml_path['data']['file'] ) ) {
297
+ WP_CLI::line( __( 'Importing WXR..', 'astra-sites' ) );
298
+ Astra_WXR_Importer::instance()->sse_import( $xml_path['data']['file'] );
299
+ } else {
300
+ /* translators: %s is error message. */
301
+ WP_CLI::line( printf( __( 'WXR file Download Failed. Error %s', 'astra-sites' ), $xml_path['data'] ) );
302
+ }
303
+ }
304
+
305
/**
306
* Reset
307
*
495
$response = $this->get_term_ids( 'astra-site-page-builder', $page_builder, $args );
496
$args = $response['args'];
497
$page_builders = $response['terms'];
498
+ if ( empty( $page_builders['data'] ) ) {
499
+ WP_CLI::error( __( 'This site page builder is not exist. Try different site page builder.', 'astra-sites' ) );
500
+ }
501
502
// Add type.
503
$type = isset( $assoc_args['type'] ) ? $assoc_args['type'] : '';
504
$response = $this->get_term_ids( 'astra-sites-type', $type, $args );
505
$args = $response['args'];
506
$types = $response['terms'];
507
+ if ( empty( $types['data'] ) ) {
508
+ WP_CLI::error( __( 'This site type is not exist. Try different site type.', 'astra-sites' ) );
509
+ }
510
511
// Add categories.
512
$category = isset( $assoc_args['category'] ) ? $assoc_args['category'] : '';
513
$response = $this->get_term_ids( 'astra-site-category', $category, $args );
514
$args = $response['args'];
515
$categories = $response['terms'];
516
+ if ( empty( $categories['data'] ) ) {
517
+ WP_CLI::error( __( 'This site category is not exist. Try different site category.', 'astra-sites' ) );
518
+ }
519
520
// Site list.
521
$sites = (array) $this->get_posts( 'astra-sites', $args, $force );
607
);
608
$args = wp_parse_args( (array) $args, $defaults );
609
610
+ $success = false;
611
$terms_data = get_transient( 'astra-sites-term-' . $term_slug );
612
if ( empty( $terms_data ) || $force ) {
613
$url = add_query_arg( $args, Astra_Sites::get_instance()->get_api_url() . $term_slug );
614
616
'timeout' => 60,
617
);
618
619
$response = wp_remote_get( $url, $api_args );
620
if ( ! is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) === 200 ) {
621
$request_term_data = json_decode( wp_remote_retrieve_body( $response ), true );
626
foreach ( $request_term_data as $key => $request_term ) {
627
$new_terms_data[ $request_term['id'] ] = $request_term['name'];
628
}
629
+ if ( set_transient( 'astra-sites-term-' . $term_slug, $new_terms_data, WEEK_IN_SECONDS ) ) {
630
+ return array(
631
+ 'success' => $success,
632
+ 'data' => $new_terms_data,
633
+ );
634
+ }
635
}
636
}
637
}
638
639
return array(
inc/classes/class-astra-sites.php CHANGED
@@ -686,6 +686,9 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
686
687
return false;
688
}
689
}
690
691
/**
686
687
return false;
688
}
689
+
690
+
691
+
692
}
693
694
/**
inc/classes/compatibility/class-astra-sites-compatibility.php CHANGED
@@ -55,6 +55,9 @@ if ( ! class_exists( 'Astra_Sites_Compatibility' ) ) :
55
56
// Plugin - LearnDash LMS.
57
require_once ASTRA_SITES_DIR . 'inc/classes/compatibility/sfwd-lms/class-astra-sites-compatibility-sfwd-lms.php';
58
}
59
60
}
55
56
// Plugin - LearnDash LMS.
57
require_once ASTRA_SITES_DIR . 'inc/classes/compatibility/sfwd-lms/class-astra-sites-compatibility-sfwd-lms.php';
58
+
59
+ // Plugin - Elementor.
60
+ require_once ASTRA_SITES_DIR . 'inc/classes/compatibility/elementor/class-astra-sites-compatibility-elementor.php';
61
}
62
63
}
inc/classes/compatibility/elementor/class-astra-sites-compatibility-elementor.php ADDED
@@ -0,0 +1,117 @@
1
+ <?php
2
+ /**
3
+ * Astra Sites Compatibility for 'Elementor'
4
+ *
5
+ * @see https://wordpress.org/plugins/elementor/
6
+ *
7
+ * @package Astra Sites
8
+ * @since 1.4.3
9
+ */
10
+
11
+ if ( ! class_exists( 'Astra_Sites_Compatibility_Elementor' ) ) :
12
+
13
+ /**
14
+ * Astra_Sites_Compatibility_Elementor
15
+ *
16
+ * @since 1.4.3
17
+ */
18
+ class Astra_Sites_Compatibility_Elementor {
19
+
20
+ /**
21
+ * Instance
22
+ *
23
+ * @access private
24
+ * @var object Class object.
25
+ * @since 1.4.3
26
+ */
27
+ private static $instance;
28
+
29
+ /**
30
+ * Initiator
31
+ *
32
+ * @since 1.4.3
33
+ * @return object initialized object of class.
34
+ */
35
+ public static function get_instance() {
36
+ if ( ! isset( self::$instance ) ) {
37
+ self::$instance = new self;
38
+ }
39
+ return self::$instance;
40
+ }
41
+
42
+ /**
43
+ * Constructor
44
+ *
45
+ * @since 1.4.3
46
+ */
47
+ public function __construct() {
48
+
49
+ /**
50
+ * Add Slashes
51
+ *
52
+ * @todo Elementor already have below code which works on defining the constant `WP_LOAD_IMPORTERS`.
53
+ * After defining the constant `WP_LOAD_IMPORTERS` in WP CLI it was not works.
54
+ * Try to remove below duplicate code in future.
55
+ */
56
+ if ( defined( 'WP_CLI' ) ) {
57
+ add_filter( 'wp_import_post_meta', array( $this, 'on_wp_import_post_meta' ) );
58
+ add_filter( 'wxr_importer.pre_process.post_meta', array( $this, 'on_wxr_importer_pre_process_post_meta' ) );
59
+ }
60
+ }
61
+
62
+ /**
63
+ * Process post meta before WP importer.
64
+ *
65
+ * Normalize Elementor post meta on import, We need the `wp_slash` in order
66
+ * to avoid the unslashing during the `add_post_meta`.
67
+ *
68
+ * Fired by `wp_import_post_meta` filter.
69
+ *
70
+ * @since 1.4.3
71
+ * @access public
72
+ *
73
+ * @param array $post_meta Post meta.
74
+ *
75
+ * @return array Updated post meta.
76
+ */
77
+ public function on_wp_import_post_meta( $post_meta ) {
78
+ foreach ( $post_meta as &$meta ) {
79
+ if ( '_elementor_data' === $meta['key'] ) {
80
+ $meta['value'] = wp_slash( $meta['value'] );
81
+ break;
82
+ }
83
+ }
84
+
85
+ return $post_meta;
86
+ }
87
+
88
+ /**
89
+ * Process post meta before WXR importer.
90
+ *
91
+ * Normalize Elementor post meta on import with the new WP_importer, We need
92
+ * the `wp_slash` in order to avoid the unslashing during the `add_post_meta`.
93
+ *
94
+ * Fired by `wxr_importer.pre_process.post_meta` filter.
95
+ *
96
+ * @since 1.4.3
97
+ * @access public
98
+ *
99
+ * @param array $post_meta Post meta.
100
+ *
101
+ * @return array Updated post meta.
102
+ */
103
+ public function on_wxr_importer_pre_process_post_meta( $post_meta ) {
104
+ if ( '_elementor_data' === $post_meta['key'] ) {
105
+ $post_meta['value'] = wp_slash( $post_meta['value'] );
106
+ }
107
+
108
+ return $post_meta;
109
+ }
110
+ }
111
+
112
+ /**
113
+ * Kicking this off by calling 'get_instance()' method
114
+ */
115
+ Astra_Sites_Compatibility_Elementor::get_instance();
116
+
117
+ endif;
inc/classes/compatibility/sfwd-lms/class-astra-sites-compatibility-sfwd-lms.php CHANGED
@@ -48,13 +48,6 @@ if ( ! class_exists( 'Astra_Sites_Compatibility_SFWD_LMS' ) ) :
48
add_filter( 'astra_sites_gutenberg_batch_process_post_types', array( $this, 'set_post_types' ) );
49
}
50
51
- /**
52
- * Add post types
53
- *
54
- * @since 1.3.13
55
- * @return array Post types.
56
- */
57
-
58
/**
59
* Set post types
60
*
48
add_filter( 'astra_sites_gutenberg_batch_process_post_types', array( $this, 'set_post_types' ) );
49
}
50
51
/**
52
* Set post types
53
*
inc/importers/batch-processing/class-astra-sites-batch-processing.php CHANGED
@@ -145,11 +145,7 @@ if ( ! class_exists( 'Astra_Sites_Batch_Processing' ) ) :
145
// @todo Remove required `allow_url_fopen` support.
146
if ( ini_get( 'allow_url_fopen' ) ) {
147
if ( is_plugin_active( 'elementor/elementor.php' ) ) {
148
- if ( defined( 'WP_CLI' ) ) {
149
- $import = new Elementor\TemplateLibrary\Astra_Sites_Batch_Processing_Elementor();
150
- } else {
151
- $import = new \Elementor\TemplateLibrary\Astra_Sites_Batch_Processing_Elementor();
152
- }
153
self::$process_all->push_to_queue( $import );
154
}
155
} else {
145
// @todo Remove required `allow_url_fopen` support.
146
if ( ini_get( 'allow_url_fopen' ) ) {
147
if ( is_plugin_active( 'elementor/elementor.php' ) ) {
148
+ $import = new \Elementor\TemplateLibrary\Astra_Sites_Batch_Processing_Elementor();
149
self::$process_all->push_to_queue( $import );
150
}
151
} else {
inc/importers/batch-processing/helpers/class-astra-sites-image-importer.php CHANGED
@@ -142,7 +142,7 @@ if ( ! class_exists( 'Astra_Sites_Image_Importer' ) ) :
142
"SELECT post_id FROM {$wpdb->postmeta}
143
WHERE meta_key = '_wp_attached_file'
144
AND meta_value LIKE %s",
145
- '%' . $filename . '%'
146
)
147
);
148
142
"SELECT post_id FROM {$wpdb->postmeta}
143
WHERE meta_key = '_wp_attached_file'
144
AND meta_value LIKE %s",
145
+ '%/' . $filename . '%'
146
)
147
);
148
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.4.2\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
- "POT-Creation-Date: 2019-11-04 09:57:18+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
@@ -53,12 +53,12 @@ msgstr ""
53
#: inc/classes/class-astra-sites-importer.php:426
54
#: inc/classes/class-astra-sites-importer.php:472
55
#: inc/classes/class-astra-sites-importer.php:519
56
- #: inc/classes/class-astra-sites-importer.php:654
57
- #: inc/classes/class-astra-sites-importer.php:682
58
- #: inc/classes/class-astra-sites-importer.php:716
59
- #: inc/classes/class-astra-sites-importer.php:768
60
- #: inc/classes/class-astra-sites-importer.php:807
61
- #: inc/classes/class-astra-sites-importer.php:842
62
#: inc/classes/class-astra-sites.php:85 inc/classes/class-astra-sites.php:104
63
msgid "You are not allowed to perform this action"
64
msgstr ""
@@ -182,7 +182,7 @@ msgid "Are you sure you want to import the site?"
182
msgstr ""
183
184
#: inc/classes/class-astra-sites-wp-cli.php:140
185
- #: inc/classes/class-astra-sites-wp-cli.php:345
186
msgid "Invalid Site ID,"
187
msgstr ""
188
@@ -216,83 +216,99 @@ msgstr ""
216
msgid "Activating Plugins.."
217
msgstr ""
218
219
- #: inc/classes/class-astra-sites-wp-cli.php:238
220
- #. translators: %s is the XML file URL.
221
- msgid "Downloading %s"
222
- msgstr ""
223
-
224
#: inc/classes/class-astra-sites-wp-cli.php:242
225
- msgid "Importing WXR.."
226
- msgstr ""
227
-
228
- #: inc/classes/class-astra-sites-wp-cli.php:246
229
- #. translators: %s is error message.
230
- msgid "WXR file Download Failed. Error %s"
231
- msgstr ""
232
-
233
- #: inc/classes/class-astra-sites-wp-cli.php:254
234
#: inc/classes/class-astra-sites.php:443
235
msgid "Importing Site Options.."
236
msgstr ""
237
238
- #: inc/classes/class-astra-sites-wp-cli.php:262
239
#: inc/classes/class-astra-sites.php:444
240
msgid "Importing Widgets.."
241
msgstr ""
242
243
- #: inc/classes/class-astra-sites-wp-cli.php:272
244
#. translators: %s is the site URL.
245
msgid ""
246
"Site Imported Successfully!\n"
247
"Visit: %s"
248
msgstr ""
249
250
- #: inc/classes/class-astra-sites-wp-cli.php:291
251
msgid "Are you sure you want to delete imported site data?"
252
msgstr ""
253
254
- #: inc/classes/class-astra-sites-wp-cli.php:299
255
msgid "Reseting Posts.."
256
msgstr ""
257
258
- #: inc/classes/class-astra-sites-wp-cli.php:306
259
msgid "Reseting Terms.."
260
msgstr ""
261
262
- #: inc/classes/class-astra-sites-wp-cli.php:313
263
msgid "Resting WP Forms..."
264
msgstr ""
265
266
- #: inc/classes/class-astra-sites-wp-cli.php:350
267
msgid "Importing customizer settings.."
268
msgstr ""
269
270
- #: inc/classes/class-astra-sites-wp-cli.php:386
271
msgid "Please add valid parameter."
272
msgstr ""
273
274
- #: inc/classes/class-astra-sites-wp-cli.php:403
275
#. translators: %s is the current page builder name.
276
msgid "Default page builder is \"%s\"."
277
msgstr ""
278
279
- #: inc/classes/class-astra-sites-wp-cli.php:411
280
#. translators: %s is the page builder name.
281
msgid "\"%s\" is set as default page builder."
282
msgstr ""
283
284
- #: inc/classes/class-astra-sites-wp-cli.php:414
285
msgid ""
286
"Invalid page builder slug. \n"
287
"Check all page builder slugs with command `wp astra-sites page_builder list`"
288
msgstr ""
289
290
- #: inc/classes/class-astra-sites-wp-cli.php:417
291
msgid ""
292
"Invalid parameter! \n"
293
"Please use `list` or `set` parameter."
294
msgstr ""
295
296
#: inc/classes/class-astra-sites.php:112
297
msgid "Theme Activated"
298
msgstr ""
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.4.3\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
+ "POT-Creation-Date: 2019-11-07 08:15:54+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
53
#: inc/classes/class-astra-sites-importer.php:426
54
#: inc/classes/class-astra-sites-importer.php:472
55
#: inc/classes/class-astra-sites-importer.php:519
56
+ #: inc/classes/class-astra-sites-importer.php:649
57
+ #: inc/classes/class-astra-sites-importer.php:677
58
+ #: inc/classes/class-astra-sites-importer.php:711
59
+ #: inc/classes/class-astra-sites-importer.php:763
60
+ #: inc/classes/class-astra-sites-importer.php:802
61
+ #: inc/classes/class-astra-sites-importer.php:837
62
#: inc/classes/class-astra-sites.php:85 inc/classes/class-astra-sites.php:104
63
msgid "You are not allowed to perform this action"
64
msgstr ""
182
msgstr ""
183
184
#: inc/classes/class-astra-sites-wp-cli.php:140
185
+ #: inc/classes/class-astra-sites-wp-cli.php:375
186
msgid "Invalid Site ID,"
187
msgstr ""
188
216
msgid "Activating Plugins.."
217
msgstr ""
218
219
#: inc/classes/class-astra-sites-wp-cli.php:242
220
#: inc/classes/class-astra-sites.php:443
221
msgid "Importing Site Options.."
222
msgstr ""
223
224
+ #: inc/classes/class-astra-sites-wp-cli.php:250
225
#: inc/classes/class-astra-sites.php:444
226
msgid "Importing Widgets.."
227
msgstr ""
228
229
+ #: inc/classes/class-astra-sites-wp-cli.php:260
230
#. translators: %s is the site URL.
231
msgid ""
232
"Site Imported Successfully!\n"
233
"Visit: %s"
234
msgstr ""
235
236
+ #: inc/classes/class-astra-sites-wp-cli.php:288
237
+ msgid "Invalid XML URL."
238
+ msgstr ""
239
+
240
+ #: inc/classes/class-astra-sites-wp-cli.php:293
241
+ #. translators: %s is the XML file URL.
242
+ msgid "Downloading %s"
243
+ msgstr ""
244
+
245
+ #: inc/classes/class-astra-sites-wp-cli.php:297
246
+ msgid "Importing WXR.."
247
+ msgstr ""
248
+
249
+ #: inc/classes/class-astra-sites-wp-cli.php:301
250
+ #. translators: %s is error message.
251
+ msgid "WXR file Download Failed. Error %s"
252
+ msgstr ""
253
+
254
+ #: inc/classes/class-astra-sites-wp-cli.php:321
255
msgid "Are you sure you want to delete imported site data?"
256
msgstr ""
257
258
+ #: inc/classes/class-astra-sites-wp-cli.php:329
259
msgid "Reseting Posts.."
260
msgstr ""
261
262
+ #: inc/classes/class-astra-sites-wp-cli.php:336
263
msgid "Reseting Terms.."
264
msgstr ""
265
266
+ #: inc/classes/class-astra-sites-wp-cli.php:343
267
msgid "Resting WP Forms..."
268
msgstr ""
269
270
+ #: inc/classes/class-astra-sites-wp-cli.php:380
271
msgid "Importing customizer settings.."
272
msgstr ""
273
274
+ #: inc/classes/class-astra-sites-wp-cli.php:416
275
msgid "Please add valid parameter."
276
msgstr ""
277
278
+ #: inc/classes/class-astra-sites-wp-cli.php:433
279
#. translators: %s is the current page builder name.
280
msgid "Default page builder is \"%s\"."
281
msgstr ""
282
283
+ #: inc/classes/class-astra-sites-wp-cli.php:441
284
#. translators: %s is the page builder name.
285
msgid "\"%s\" is set as default page builder."
286
msgstr ""
287
288
+ #: inc/classes/class-astra-sites-wp-cli.php:444
289
msgid ""
290
"Invalid page builder slug. \n"
291
"Check all page builder slugs with command `wp astra-sites page_builder list`"
292
msgstr ""
293
294
+ #: inc/classes/class-astra-sites-wp-cli.php:447
295
msgid ""
296
"Invalid parameter! \n"
297
"Please use `list` or `set` parameter."
298
msgstr ""
299
300
+ #: inc/classes/class-astra-sites-wp-cli.php:499
301
+ msgid "This site page builder is not exist. Try different site page builder."
302
+ msgstr ""
303
+
304
+ #: inc/classes/class-astra-sites-wp-cli.php:508
305
+ msgid "This site type is not exist. Try different site type."
306
+ msgstr ""
307
+
308
+ #: inc/classes/class-astra-sites-wp-cli.php:517
309
+ msgid "This site category is not exist. Try different site category."
310
+ msgstr ""
311
+
312
#: inc/classes/class-astra-sites.php:112
313
msgid "Theme Activated"
314
msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Elementor,Beaver Builder,Templates,Gutenberg,Astra Starter Sites
5
Requires at least: 4.4
6
Requires PHP: 5.3
7
Tested up to: 5.2
8
- Stable tag: 1.4.2
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
@@ -117,6 +117,12 @@ We are open to suggestions and would love to work on topics that our users are l
117
118
== Changelog ==
119
120
v1.4.2 - 4-November-2019
121
- Fix: Correctly added nonce to allow notice to be dismissed.
122
- Fix: Restore the timeout time to be 300 seconds which is the default for `download_url()`
5
Requires at least: 4.4
6
Requires PHP: 5.3
7
Tested up to: 5.2
8
+ Stable tag: 1.4.3
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
117
118
== Changelog ==
119
120
+ v1.4.3 - 7-November-2019
121
+ - Fix: Installing premium plugin from the WP CLI import.
122
+ - Fix: WP CLI command `wp astra-sites list` showing the old result.
123
+ - Fix: PHP error Astra_Sites_Batch_Processing_Elementor does not exist from WP CLI import.
124
+ - Improvement: Some Elementor templates broken due to the missing wp_slash() from WP CLI import.
125
+
126
v1.4.2 - 4-November-2019
127
- Fix: Correctly added nonce to allow notice to be dismissed.
128
- Fix: Restore the timeout time to be 300 seconds which is the default for `download_url()`