Astra Starter Sites - Version 2.3.1

Version Description

Download this release

Release Info

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

Code changes from version 2.3.0 to 2.3.1

admin/bsf-analytics/assets/css/minified/style-rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ #bsf-optin-notice{padding:1px 12px;border-right-color:#007cba}#bsf-optin-notice .notice-container{padding-top:10px;padding-bottom:12px}#bsf-optin-notice .notice-content{margin:0}#bsf-optin-notice .notice-heading{padding:0 0 12px 20px}#bsf-optin-notice .button-primary{margin-left:5px}
admin/bsf-analytics/class-bsf-analytics-stats.php CHANGED
@@ -194,7 +194,6 @@ if ( ! class_exists( 'BSF_Analytics_Stats' ) ) {
194
  * @since 1.0.0
195
  */
196
  private function get_curl_version() {
197
- $curl = array();
198
  if ( function_exists( 'curl_version' ) ) {
199
  $curl = curl_version(); // phpcs:ignore WordPress.WP.AlternativeFunctions.curl_curl_version
200
  }
194
  * @since 1.0.0
195
  */
196
  private function get_curl_version() {
 
197
  if ( function_exists( 'curl_version' ) ) {
198
  $curl = curl_version(); // phpcs:ignore WordPress.WP.AlternativeFunctions.curl_curl_version
199
  }
admin/bsf-analytics/class-bsf-analytics.php CHANGED
@@ -33,7 +33,7 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
33
  public function __construct() {
34
 
35
  define( 'BSF_ANALYTICS_FILE', __FILE__ );
36
- define( 'BSF_ANALYTICS_VERSION', '1.0.1' );
37
  define( 'BSF_ANALYTICS_PATH', dirname( __FILE__ ) );
38
  define( 'BSF_ANALYTICS_URI', $this->bsf_analytics_url() );
39
 
@@ -430,7 +430,10 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
430
  }
431
 
432
  foreach ( $plugins as $plugin_file ) {
433
- if ( 0 === strpos( $plugin_file, $plugin_slug ) ) {
 
 
 
434
  $plugin_path = WP_PLUGIN_DIR . '/' . $plugin_file;
435
  $plugin_data = get_plugin_data( $plugin_path );
436
  return $plugin_data['Name'];
33
  public function __construct() {
34
 
35
  define( 'BSF_ANALYTICS_FILE', __FILE__ );
36
+ define( 'BSF_ANALYTICS_VERSION', '1.0.2' );
37
  define( 'BSF_ANALYTICS_PATH', dirname( __FILE__ ) );
38
  define( 'BSF_ANALYTICS_URI', $this->bsf_analytics_url() );
39
 
430
  }
431
 
432
  foreach ( $plugins as $plugin_file ) {
433
+
434
+ $plugin_folder = explode( '/', $plugin_file );
435
+ $plugin_folder = $plugin_folder[0];
436
+ if ( $plugin_folder === $plugin_slug ) {
437
  $plugin_path = WP_PLUGIN_DIR . '/' . $plugin_file;
438
  $plugin_data = get_plugin_data( $plugin_path );
439
  return $plugin_data['Name'];
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.0
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.0' );
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: 2.3.1
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.1' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/classes/class-astra-sites.php CHANGED
@@ -1635,22 +1635,18 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
1635
  // Checking the `install_plugins` and `activate_plugins` capability for the current user.
1636
  // To perform plugin installation process.
1637
  if (
1638
- ( ! current_user_can( 'install_plugins' ) && ! empty( $response['notinstalled'] ) ) ||
1639
- ( ! current_user_can( 'activate_plugins' ) && ! empty( $response['inactive'] ) ) ) {
1640
- $message = __( 'Insufficient Permission. Please contact your Super Admin to allow the install required plugin permissions.', 'astra-sites' );
1641
- if ( defined( 'WP_CLI' ) && WP_CLI ) {
1642
- WP_CLI::error( $message );
1643
- } else {
1644
- $required_plugins_list = array_merge( $response['notinstalled'], $response['inactive'] );
1645
- $markup = $message;
1646
- $markup .= '<ul>';
1647
- foreach ( $required_plugins_list as $key => $required_plugin ) {
1648
- $markup .= '<li>' . esc_html( $required_plugin['name'] ) . '</li>';
1649
- }
1650
- $markup .= '</ul>';
1651
-
1652
- wp_send_json_error( $markup );
1653
  }
 
 
 
1654
  }
1655
 
1656
  $data = array(
1635
  // Checking the `install_plugins` and `activate_plugins` capability for the current user.
1636
  // To perform plugin installation process.
1637
  if (
1638
+ ( ! defined( 'WP_CLI' ) ) &&
1639
+ ( ( ! current_user_can( 'install_plugins' ) && ! empty( $response['notinstalled'] ) ) || ( ! current_user_can( 'activate_plugins' ) && ! empty( $response['inactive'] ) ) ) ) {
1640
+ $message = __( 'Insufficient Permission. Please contact your Super Admin to allow the install required plugin permissions.', 'astra-sites' );
1641
+ $required_plugins_list = array_merge( $response['notinstalled'], $response['inactive'] );
1642
+ $markup = $message;
1643
+ $markup .= '<ul>';
1644
+ foreach ( $required_plugins_list as $key => $required_plugin ) {
1645
+ $markup .= '<li>' . esc_html( $required_plugin['name'] ) . '</li>';
 
 
 
 
 
 
 
1646
  }
1647
+ $markup .= '</ul>';
1648
+
1649
+ wp_send_json_error( $markup );
1650
  }
1651
 
1652
  $data = array(
languages/astra-sites.pot CHANGED
@@ -2,9 +2,9 @@
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.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
- "POT-Creation-Date: 2020-06-15 11:46: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"
@@ -839,7 +839,7 @@ msgid ""
839
  "install required plugin permissions."
840
  msgstr ""
841
 
842
- #: inc/classes/class-astra-sites.php:1838
843
  msgid "Template library refreshed!"
844
  msgstr ""
845
 
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.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
+ "POT-Creation-Date: 2020-06-17 18:11:20+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
839
  "install required plugin permissions."
840
  msgstr ""
841
 
842
+ #: inc/classes/class-astra-sites.php:1834
843
  msgid "Template library refreshed!"
844
  msgstr ""
845
 
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.4
8
- Stable tag: 2.3.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -138,6 +138,9 @@ We are open to suggestions and would love to work on topics that our users are l
138
 
139
  == Changelog ==
140
 
 
 
 
141
  v2.3.0 - 15-June-2020
142
  - New: Users can now share non-personal usage data to help us test and develop better products.
143
 
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.4
8
+ Stable tag: 2.3.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
138
 
139
  == Changelog ==
140
 
141
+ v2.3.1 - 17-June-2020
142
+ - Fix: Fixed the user role and capability issue for WP CLI demo import.
143
+
144
  v2.3.0 - 15-June-2020
145
  - New: Users can now share non-personal usage data to help us test and develop better products.
146