Astra Starter Sites - Version 3.1.19

Version Description

Download this release

Release Info

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

Code changes from version 3.1.18 to 3.1.19

astra-sites.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Starter Templates
4
  * Plugin URI: https://wpastra.com/
5
  * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
6
- * Version: 3.1.18
7
  * Author: Brainstorm Force
8
  * Author URI: https://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', '3.1.18' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
3
  * Plugin Name: Starter Templates
4
  * Plugin URI: https://wpastra.com/
5
  * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
6
+ * Version: 3.1.19
7
  * Author: Brainstorm Force
8
  * Author URI: https://www.brainstormforce.com
9
  * Text Domain: astra-sites
19
  }
20
 
21
  if ( ! defined( 'ASTRA_SITES_VER' ) ) {
22
+ define( 'ASTRA_SITES_VER', '3.1.19' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/assets/css/install-theme-rtl.css DELETED
@@ -1,21 +0,0 @@
1
- .processing:before {
2
- margin: 0 0px 0px 3px;
3
- }
4
- .processing:before {
5
- animation: rotation 2s infinite linear;
6
- }
7
- .processing:before {
8
- color: #f56e28;
9
- content: "\f463";
10
- }
11
- .processing:before {
12
- display: inline-block;
13
- font: normal 20px/1 dashicons;
14
- -webkit-font-smoothing: antialiased;
15
- -moz-osx-font-smoothing: grayscale;
16
- vertical-align: top;
17
- }
18
- #astra-theme-activation-nag a {
19
- box-shadow: none;
20
- outline: none;
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/assets/css/install-theme.css DELETED
@@ -1,21 +0,0 @@
1
- .processing:before {
2
- margin: 0 3px 0px 0px;
3
- }
4
- .processing:before {
5
- animation: rotation 2s infinite linear;
6
- }
7
- .processing:before {
8
- color: #f56e28;
9
- content: "\f463";
10
- }
11
- .processing:before {
12
- display: inline-block;
13
- font: normal 20px/1 dashicons;
14
- -webkit-font-smoothing: antialiased;
15
- -moz-osx-font-smoothing: grayscale;
16
- vertical-align: top;
17
- }
18
- #astra-theme-activation-nag a {
19
- box-shadow: none;
20
- outline: none;
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/assets/js/install-theme.js CHANGED
@@ -123,4 +123,4 @@
123
  AstraSitesInstallTheme.init();
124
  });
125
 
126
- })(jQuery);
123
  AstraSitesInstallTheme.init();
124
  });
125
 
126
+ })(jQuery);
inc/classes/class-astra-sites-page.php CHANGED
@@ -99,6 +99,49 @@ if ( ! class_exists( 'Astra_Sites_Page' ) ) {
99
 
100
  }
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  /**
103
  * Save Page Builder
104
  *
99
 
100
  }
101
 
102
+ /**
103
+ * Save Page Builder
104
+ *
105
+ * @since 1.4.0 The `$page_builder_slug` was added.
106
+ *
107
+ * @param string $page_builder_slug Page Builder Slug.
108
+ * @return mixed
109
+ */
110
+ public function save_page_builder_on_submit( $page_builder_slug = '' ) {
111
+
112
+ // Only admins can save settings.
113
+ if ( ! defined( 'WP_CLI' ) && ! current_user_can( 'manage_options' ) ) {
114
+ return;
115
+ }
116
+
117
+ if ( ! defined( 'WP_CLI' ) && ( ! isset( $_REQUEST['astra-sites-page-builder'] ) || ! wp_verify_nonce( $_REQUEST['astra-sites-page-builder'], 'astra-sites-welcome-screen' ) ) ) {
118
+ return;
119
+ }
120
+
121
+ // Stored Settings.
122
+ $stored_data = $this->get_settings();
123
+
124
+ $page_builder = isset( $_REQUEST['page_builder'] ) ? sanitize_key( $_REQUEST['page_builder'] ) : sanitize_key( $page_builder_slug );
125
+
126
+ if ( ! empty( $page_builder ) ) {
127
+ // New settings.
128
+ $new_data = array(
129
+ 'page_builder' => $page_builder,
130
+ );
131
+
132
+ // Merge settings.
133
+ $data = wp_parse_args( $new_data, $stored_data );
134
+
135
+ // Update settings.
136
+ update_option( 'astra_sites_settings', $data );
137
+ }
138
+
139
+ if ( ! defined( 'WP_CLI' ) ) {
140
+ wp_safe_redirect( admin_url( '/themes.php?page=astra-sites' ) );
141
+ exit;
142
+ }
143
+ }
144
+
145
  /**
146
  * Save Page Builder
147
  *
inc/classes/class-astra-sites.php CHANGED
@@ -1562,8 +1562,6 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
1562
  }
1563
 
1564
  wp_enqueue_script( 'astra-sites-install-theme', ASTRA_SITES_URI . 'inc/assets/js/install-theme.js', array( 'jquery', 'updates' ), ASTRA_SITES_VER, true );
1565
- wp_enqueue_style( 'astra-sites-install-theme', ASTRA_SITES_URI . 'inc/assets/css/install-theme.css', null, ASTRA_SITES_VER, 'all' );
1566
- wp_style_add_data( 'astra-sites-install-theme', 'rtl', 'replace' );
1567
 
1568
  $data = apply_filters(
1569
  'astra_sites_install_theme_localize_vars',
1562
  }
1563
 
1564
  wp_enqueue_script( 'astra-sites-install-theme', ASTRA_SITES_URI . 'inc/assets/js/install-theme.js', array( 'jquery', 'updates' ), ASTRA_SITES_VER, true );
 
 
1565
 
1566
  $data = apply_filters(
1567
  'astra_sites_install_theme_localize_vars',
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Elementor,Beaver Builder,Templates,Gutenberg,Block Editor,Astra Starter Si
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 6.1
8
- Stable tag: 3.1.18
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -133,12 +133,15 @@ We are open to suggestions and would love to work on topics that our users are l
133
 
134
  == Changelog ==
135
 
 
 
 
136
  v3.1.18 - 04-November-2022
137
- Fix: Compatibility to WordPress 6.1.
138
- Improvement: Responsive welcome banner notice on WP dashboard for fresh installation.
139
 
140
  v3.1.17 - 10-October-2022
141
- New: Added welcome banner notice on WP dashboard for fresh installation.
142
 
143
  v3.1.16 - 12-September-2022
144
  - Improvement: Added compatibility for Spectra.
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 6.1
8
+ Stable tag: 3.1.19
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
133
 
134
  == Changelog ==
135
 
136
+ v3.1.19 - 09-December-2022
137
+ - Fix: Page builder not set using WP-cli command.
138
+
139
  v3.1.18 - 04-November-2022
140
+ - Fix: Compatibility to WordPress 6.1.
141
+ - Improvement: Responsive welcome banner notice on WP dashboard for fresh installation.
142
 
143
  v3.1.17 - 10-October-2022
144
+ - New: Added welcome banner notice on WP dashboard for fresh installation.
145
 
146
  v3.1.16 - 12-September-2022
147
  - Improvement: Added compatibility for Spectra.