Astra Starter Sites - Version 2.2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

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.2.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.2.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.2.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.2.1' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/classes/class-astra-sites-importer-log.php CHANGED
@@ -68,14 +68,10 @@ if ( ! class_exists( 'Astra_Sites_Importer_Log' ) ) :
68
  */
69
  public function has_file_read_write() {
70
 
71
- $upload_dir = self::log_dir();
72
- $upload_path = trailingslashit( $upload_dir['url'] );
73
 
74
- // Get user credentials for WP file-system API.
75
- $source_url = wp_nonce_url( admin_url( 'themes.php?page=starter-templates' ), 'astra-import' );
76
- $creds = request_filesystem_credentials( $source_url, '', false, $upload_dir['path'], null );
77
  $file_created = Astra_Sites::get_instance()->get_filesystem()->put_contents( $upload_dir['path'] . 'index.html', '' );
78
- if ( false === $creds || ( ! $file_created ) ) {
79
  add_action( 'admin_notices', array( $this, 'file_permission_notice' ) );
80
  return;
81
  }
68
  */
69
  public function has_file_read_write() {
70
 
71
+ $upload_dir = self::log_dir();
 
72
 
 
 
 
73
  $file_created = Astra_Sites::get_instance()->get_filesystem()->put_contents( $upload_dir['path'] . 'index.html', '' );
74
+ if ( ! $file_created ) {
75
  add_action( 'admin_notices', array( $this, 'file_permission_notice' ) );
76
  return;
77
  }
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.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
- "POT-Creation-Date: 2020-04-06 07:21:17+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -28,39 +28,39 @@ msgstr ""
28
  msgid "Starter Templates"
29
  msgstr ""
30
 
31
- #: inc/classes/class-astra-sites-importer-log.php:100
32
  msgid "Required File Permissions to import the templates are missing."
33
  msgstr ""
34
 
35
- #: inc/classes/class-astra-sites-importer-log.php:102
36
  msgid "This is usually due to inconsistent file permissions."
37
  msgstr ""
38
 
39
- #: inc/classes/class-astra-sites-importer-log.php:105
40
  msgid ""
41
  "You can easily update permissions by adding the following code into the "
42
  "wp-config.php file."
43
  msgstr ""
44
 
45
- #: inc/classes/class-astra-sites-importer-log.php:270
46
  msgid "Enabled"
47
  msgstr ""
48
 
49
- #: inc/classes/class-astra-sites-importer-log.php:273
50
  msgid "Disabled"
51
  msgstr ""
52
 
53
- #: inc/classes/class-astra-sites-importer-log.php:358
54
- #: inc/classes/class-astra-sites-importer-log.php:417
55
  msgid "Yes"
56
  msgstr ""
57
 
58
- #: inc/classes/class-astra-sites-importer-log.php:361
59
- #: inc/classes/class-astra-sites-importer-log.php:420
60
  msgid "No"
61
  msgstr ""
62
 
63
- #: inc/classes/class-astra-sites-importer-log.php:435
64
  msgid "You currently have no scheduled cron events."
65
  msgstr ""
66
 
@@ -1401,13 +1401,13 @@ msgstr ""
1401
  msgid "https://www.brainstormforce.com"
1402
  msgstr ""
1403
 
1404
- #: inc/classes/class-astra-sites-importer-log.php:291
1405
  #. translators: %1$s Memory Limit, %2$s Recommended memory limit.
1406
  msgctxt "Recommended Memory Limit"
1407
  msgid "Current memory limit %1$s. We recommend setting memory to at least %2$s."
1408
  msgstr ""
1409
 
1410
- #: inc/classes/class-astra-sites-importer-log.php:372
1411
  msgctxt "PHP Version"
1412
  msgid "We recommend to use php 5.4 or higher"
1413
  msgstr ""
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.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
+ "POT-Creation-Date: 2020-04-15 07:41:55+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
28
  msgid "Starter Templates"
29
  msgstr ""
30
 
31
+ #: inc/classes/class-astra-sites-importer-log.php:96
32
  msgid "Required File Permissions to import the templates are missing."
33
  msgstr ""
34
 
35
+ #: inc/classes/class-astra-sites-importer-log.php:98
36
  msgid "This is usually due to inconsistent file permissions."
37
  msgstr ""
38
 
39
+ #: inc/classes/class-astra-sites-importer-log.php:101
40
  msgid ""
41
  "You can easily update permissions by adding the following code into the "
42
  "wp-config.php file."
43
  msgstr ""
44
 
45
+ #: inc/classes/class-astra-sites-importer-log.php:266
46
  msgid "Enabled"
47
  msgstr ""
48
 
49
+ #: inc/classes/class-astra-sites-importer-log.php:269
50
  msgid "Disabled"
51
  msgstr ""
52
 
53
+ #: inc/classes/class-astra-sites-importer-log.php:354
54
+ #: inc/classes/class-astra-sites-importer-log.php:413
55
  msgid "Yes"
56
  msgstr ""
57
 
58
+ #: inc/classes/class-astra-sites-importer-log.php:357
59
+ #: inc/classes/class-astra-sites-importer-log.php:416
60
  msgid "No"
61
  msgstr ""
62
 
63
+ #: inc/classes/class-astra-sites-importer-log.php:431
64
  msgid "You currently have no scheduled cron events."
65
  msgstr ""
66
 
1401
  msgid "https://www.brainstormforce.com"
1402
  msgstr ""
1403
 
1404
+ #: inc/classes/class-astra-sites-importer-log.php:287
1405
  #. translators: %1$s Memory Limit, %2$s Recommended memory limit.
1406
  msgctxt "Recommended Memory Limit"
1407
  msgid "Current memory limit %1$s. We recommend setting memory to at least %2$s."
1408
  msgstr ""
1409
 
1410
+ #: inc/classes/class-astra-sites-importer-log.php:368
1411
  msgctxt "PHP Version"
1412
  msgid "We recommend to use php 5.4 or higher"
1413
  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.4
8
- Stable tag: 2.2.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.2.0 - 6-April-2020
142
  - Improvement: Added an Update Button for un-updated plugin list popup.
143
  - Improvement: Used text-domain `astra-sites` to make translation ready strings.
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.4
8
+ Stable tag: 2.2.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.2.1 - 15-April-2020
142
+ - Improvement: Improved the file permissions check functionality.
143
+
144
  v2.2.0 - 6-April-2020
145
  - Improvement: Added an Update Button for un-updated plugin list popup.
146
  - Improvement: Used text-domain `astra-sites` to make translation ready strings.