Astra Starter Sites - Version 1.3.16

Version Description

Download this release

Release Info

Developer vrundakansara
Plugin Icon Astra Starter Sites
Version 1.3.16
Comparing to
See all releases

Code changes from version 1.3.15 to 1.3.16

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.3.15
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.3.15' );
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.3.16
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.3.16' );
23
}
24
25
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/classes/compatibility/woocommerce/class-astra-sites-compatibility-woocommerce.php CHANGED
@@ -1,85 +1,84 @@
1
- <?php
2
- /**
3
- * Astra Sites Compatibility for 'WooCommerce'
4
- *
5
- * @see https://wordpress.org/plugins/woocommerce/
6
- *
7
- * @package Astra Sites
8
- * @since 1.1.4
9
- */
10
-
11
- if ( ! class_exists( 'Astra_Sites_Compatibility_WooCommerce' ) ) :
12
-
13
- /**
14
- * WooCommerce Compatibility
15
- *
16
- * @since 1.1.4
17
- */
18
- class Astra_Sites_Compatibility_WooCommerce {
19
-
20
- /**
21
- * Instance
22
- *
23
- * @access private
24
- * @var object Class object.
25
- * @since 1.1.4
26
- */
27
- private static $instance;
28
-
29
- /**
30
- * Initiator
31
- *
32
- * @since 1.1.4
33
- * @return object initialized object of class.
34
- */
35
- public static function 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.1.4
46
- */
47
- public function __construct() {
48
- add_filter( 'woocommerce_enable_setup_wizard', '__return_false', 5 );
49
- add_action( 'astra_sites_import_start', array( $this, 'add_attributes' ), 10, 2 );
50
- }
51
-
52
- /**
53
- * Add product attributes.
54
- *
55
- * @since 1.1.4
56
- *
57
- * @param string $demo_data Import data.
58
- * @param array $demo_api_uri Demo site URL.
59
- * @return void
60
- */
61
- function add_attributes( $demo_data = array(), $demo_api_uri = '' ) {
62
- $attributes = ( isset( $demo_data['astra-site-options-data']['woocommerce_product_attributes'] ) ) ? $demo_data['astra-site-options-data']['woocommerce_product_attributes'] : array();
63
-
64
- if ( ! empty( $attributes ) && function_exists( 'wc_create_attribute' ) ) {
65
- foreach ( $attributes as $key => $attribute ) {
66
- $args = array(
67
- 'name' => $attribute['attribute_label'],
68
- 'slug' => $attribute['attribute_name'],
69
- 'type' => $attribute['attribute_type'],
70
- 'order_by' => $attribute['attribute_orderby'],
71
- 'has_archives' => $attribute['attribute_public'],
72
- );
73
-
74
- $id = wc_create_attribute( $args );
75
- }
76
- }
77
- }
78
- }
79
-
80
- /**
81
- * Kicking this off by calling 'instance()' method
82
- */
83
- Astra_Sites_Compatibility_WooCommerce::instance();
84
-
85
- endif;
1
+ <?php
2
+ /**
3
+ * Astra Sites Compatibility for 'WooCommerce'
4
+ *
5
+ * @see https://wordpress.org/plugins/woocommerce/
6
+ *
7
+ * @package Astra Sites
8
+ * @since 1.1.4
9
+ */
10
+
11
+ if ( ! class_exists( 'Astra_Sites_Compatibility_WooCommerce' ) ) :
12
+
13
+ /**
14
+ * WooCommerce Compatibility
15
+ *
16
+ * @since 1.1.4
17
+ */
18
+ class Astra_Sites_Compatibility_WooCommerce {
19
+
20
+ /**
21
+ * Instance
22
+ *
23
+ * @access private
24
+ * @var object Class object.
25
+ * @since 1.1.4
26
+ */
27
+ private static $instance;
28
+
29
+ /**
30
+ * Initiator
31
+ *
32
+ * @since 1.1.4
33
+ * @return object initialized object of class.
34
+ */
35
+ public static function 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.1.4
46
+ */
47
+ public function __construct() {
48
+ add_action( 'astra_sites_import_start', array( $this, 'add_attributes' ), 10, 2 );
49
+ }
50
+
51
+ /**
52
+ * Add product attributes.
53
+ *
54
+ * @since 1.1.4
55
+ *
56
+ * @param string $demo_data Import data.
57
+ * @param array $demo_api_uri Demo site URL.
58
+ * @return void
59
+ */
60
+ function add_attributes( $demo_data = array(), $demo_api_uri = '' ) {
61
+ $attributes = ( isset( $demo_data['astra-site-options-data']['woocommerce_product_attributes'] ) ) ? $demo_data['astra-site-options-data']['woocommerce_product_attributes'] : array();
62
+
63
+ if ( ! empty( $attributes ) && function_exists( 'wc_create_attribute' ) ) {
64
+ foreach ( $attributes as $key => $attribute ) {
65
+ $args = array(
66
+ 'name' => $attribute['attribute_label'],
67
+ 'slug' => $attribute['attribute_name'],
68
+ 'type' => $attribute['attribute_type'],
69
+ 'order_by' => $attribute['attribute_orderby'],
70
+ 'has_archives' => $attribute['attribute_public'],
71
+ );
72
+
73
+ $id = wc_create_attribute( $args );
74
+ }
75
+ }
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Kicking this off by calling 'instance()' method
81
+ */
82
+ Astra_Sites_Compatibility_WooCommerce::instance();
83
+
84
+ endif;
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.3.15\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
- "POT-Creation-Date: 2019-06-20 10:37:00+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
@@ -22,7 +22,7 @@ msgstr ""
22
"X-Poedit-SearchPath-0: .\n"
23
"X-Poedit-Bookmarks: \n"
24
"X-Textdomain-Support: yes\n"
25
- "X-Generator: grunt-wp-i18n1.0.0\n"
26
27
#: astra-sites.php:18
28
msgid "Astra Sites"
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.3.16\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
+ "POT-Creation-Date: 2019-06-21 08:51:03+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
22
"X-Poedit-SearchPath-0: .\n"
23
"X-Poedit-Bookmarks: \n"
24
"X-Textdomain-Support: yes\n"
25
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
26
27
#: astra-sites.php:18
28
msgid "Astra Sites"
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.3.15
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
@@ -117,6 +117,9 @@ We are open to suggestions and would love to work on topics that our users are l
117
118
== Changelog ==
119
120
v1.3.15 - 20-June-2019
121
- Fix: Importing pages, post twice from the import process.
122
5
Requires at least: 4.4
6
Requires PHP: 5.3
7
Tested up to: 5.2
8
+ Stable tag: 1.3.16
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
117
118
== Changelog ==
119
120
+ v1.3.16 - 21-June-2019
121
+ - Fix: WooCommerce onboarding setup blocked issue fixed.
122
+
123
v1.3.15 - 20-June-2019
124
- Fix: Importing pages, post twice from the import process.
125