Astra Starter Sites - Version 2.3.8

Version Description

Download this release

Release Info

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

Code changes from version 2.3.7 to 2.3.8

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: 2.3.7
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', '2.3.7' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
@@ -69,7 +69,7 @@ $bsf_analytics = BSF_Analytics_Loader::get_instance();
69
  $bsf_analytics->set_entity(
70
  array(
71
  'bsf' => array(
72
- 'product_name' => 'Starter Templates',
73
  'path' => ASTRA_SITES_DIR . 'admin/bsf-analytics',
74
  'author' => 'Brainstorm Force',
75
  'time_to_display' => '+24 hours',
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: 2.3.8
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', '2.3.8' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
69
  $bsf_analytics->set_entity(
70
  array(
71
  'bsf' => array(
72
+ 'product_name' => __( 'Starter Templates', 'astra-sites'),
73
  'path' => ASTRA_SITES_DIR . 'admin/bsf-analytics',
74
  'author' => 'Brainstorm Force',
75
  'time_to_display' => '+24 hours',
inc/classes/compatibility/class-astra-sites-compatibility.php CHANGED
@@ -55,6 +55,9 @@ if ( ! class_exists( 'Astra_Sites_Compatibility' ) ) :
55
 
56
  // Plugin - Elementor.
57
  require_once ASTRA_SITES_DIR . 'inc/classes/compatibility/elementor/class-astra-sites-compatibility-elementor.php';
 
 
 
58
  }
59
 
60
  }
55
 
56
  // Plugin - Elementor.
57
  require_once ASTRA_SITES_DIR . 'inc/classes/compatibility/elementor/class-astra-sites-compatibility-elementor.php';
58
+
59
+ // Plugin - LearnDash.
60
+ require_once ASTRA_SITES_DIR . 'inc/classes/compatibility/learndash/class-astra-sites-compatibility-learndash.php';
61
  }
62
 
63
  }
inc/classes/compatibility/learndash/class-astra-sites-compatibility-learndash.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Compatibility for 'LearnDash'
4
+ *
5
+ * @see https://wordpress.org/plugins/astra-pro/
6
+ *
7
+ * @package Astra Sites
8
+ * @since 2.3.8
9
+ */
10
+
11
+ // If LearnDash is not defined then return false.
12
+ if ( ! defined( 'LEARNDASH_COURSE_GRID_VERSION' ) ) {
13
+ return;
14
+ }
15
+
16
+ if ( ! class_exists( 'Astra_Sites_Compatibility_LearnDash' ) ) :
17
+
18
+ /**
19
+ * Astra Sites Compatibility LearnDash
20
+ *
21
+ * @since 2.3.8
22
+ */
23
+ class Astra_Sites_Compatibility_LearnDash {
24
+
25
+ /**
26
+ * Instance
27
+ *
28
+ * @access private
29
+ * @var object Class object.
30
+ * @since 2.3.8
31
+ */
32
+ private static $instance;
33
+
34
+ /**
35
+ * Initiator
36
+ *
37
+ * @since 2.3.8
38
+ * @return object initialized object of class.
39
+ */
40
+ public static function get_instance() {
41
+ if ( ! isset( self::$instance ) ) {
42
+ self::$instance = new self();
43
+ }
44
+ return self::$instance;
45
+ }
46
+
47
+ /**
48
+ * Constructor
49
+ *
50
+ * @since 2.3.8
51
+ */
52
+ public function __construct() {
53
+ add_filter( 'astra_sites_pre_process_post_disable_content', '__return_false' );
54
+ }
55
+ }
56
+
57
+ /**
58
+ * Kicking this off by calling 'get_instance()' method
59
+ */
60
+ Astra_Sites_Compatibility_LearnDash::get_instance();
61
+
62
+ endif;
inc/importers/wxr-importer/class-astra-wxr-importer.php CHANGED
@@ -148,9 +148,11 @@ class Astra_WXR_Importer {
148
  $is_beaver_builder_page = in_array( '_fl_builder_enabled', $meta_data, true );
149
  $is_brizy_page = in_array( 'brizy_post_uid', $meta_data, true );
150
 
 
 
151
  // If post type is `attachment OR
152
  // If page contain Elementor, Brizy or Beaver Builder meta then skip this page.
153
- if ( $is_attachment || $is_elementor_page || $is_beaver_builder_page || $is_brizy_page ) {
154
  $data['post_content'] = '';
155
  } else {
156
  /**
148
  $is_beaver_builder_page = in_array( '_fl_builder_enabled', $meta_data, true );
149
  $is_brizy_page = in_array( 'brizy_post_uid', $meta_data, true );
150
 
151
+ $disable_post_content = apply_filters( 'astra_sites_pre_process_post_disable_content', ( $is_attachment || $is_elementor_page || $is_beaver_builder_page || $is_brizy_page ) );
152
+
153
  // If post type is `attachment OR
154
  // If page contain Elementor, Brizy or Beaver Builder meta then skip this page.
155
+ if ( $disable_post_content ) {
156
  $data['post_content'] = '';
157
  } else {
158
  /**
languages/astra-sites.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Starter Templates package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Starter Templates 2.3.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
  "POT-Creation-Date: 2020-08-27 10:35:32+00:00\n"
8
  "MIME-Version: 1.0\n"
2
  # This file is distributed under the same license as the Starter Templates package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Starter Templates 2.3.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
  "POT-Creation-Date: 2020-08-27 10:35:32+00:00\n"
8
  "MIME-Version: 1.0\n"
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.5
8
- Stable tag: 2.3.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -140,6 +140,9 @@ We are open to suggestions and would love to work on topics that our users are l
140
 
141
  == Changelog ==
142
 
 
 
 
143
  v2.3.7 - 28-September-2020
144
  - Fix: Prefixed all Starter Templates Icon classes in order to avoid 3rd party conflicts.
145
 
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.5
8
+ Stable tag: 2.3.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
140
 
141
  == Changelog ==
142
 
143
+ v2.3.8 - 23-October-2020
144
+ - Fix: LearnDash grid CSS not loading after site import.
145
+
146
  v2.3.7 - 28-September-2020
147
  - Fix: Prefixed all Starter Templates Icon classes in order to avoid 3rd party conflicts.
148