Astra Starter Sites - Version 2.7.2

Version Description

Download this release

Release Info

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

Code changes from version 2.7.1 to 2.7.2

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.7.1
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.7.1' );
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.7.2
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.7.2' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/classes/class-astra-sites.php CHANGED
@@ -456,7 +456,7 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
456
  * @since 2.0.0
457
  */
458
  public function api_request() {
459
- $url = isset( $_POST['url'] ) ? esc_url_raw( $_POST['url'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
460
 
461
  if ( empty( $url ) ) {
462
  wp_send_json_error( __( 'Provided API URL is empty! Please try again!', 'astra-sites' ) );
@@ -1430,7 +1430,7 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
1430
  'astra_sites_api_params',
1431
  array(
1432
  'purchase_key' => '',
1433
- 'site_url' => '',
1434
  'per-page' => 15,
1435
  )
1436
  );
456
  * @since 2.0.0
457
  */
458
  public function api_request() {
459
+ $url = isset( $_POST['url'] ) ? sanitize_text_field( $_POST['url'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing
460
 
461
  if ( empty( $url ) ) {
462
  wp_send_json_error( __( 'Provided API URL is empty! Please try again!', 'astra-sites' ) );
1430
  'astra_sites_api_params',
1431
  array(
1432
  'purchase_key' => '',
1433
+ 'site_url' => get_site_url(),
1434
  'per-page' => 15,
1435
  )
1436
  );
inc/lib/gutenberg-templates/classes/class-ast-block-templates.php CHANGED
@@ -400,7 +400,7 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
400
  'wpforms_status' => $this->get_plugin_status( 'wpforms-lite/wpforms.php' ),
401
  'gutenberg_status' => $this->get_plugin_status( 'gutenberg/gutenberg.php' ),
402
  '_ajax_nonce' => wp_create_nonce( 'ast-block-templates-ajax-nonce' ),
403
- 'button_text' => esc_html__( 'Starter Templates', 'ast-block-templates', 'astra-sites' ),
404
  'display_button_logo' => true,
405
  'popup_logo_uri' => AST_BLOCK_TEMPLATES_URI . 'dist/logo.svg',
406
  'button_logo' => AST_BLOCK_TEMPLATES_URI . 'dist/starter-template-logo.svg',
400
  'wpforms_status' => $this->get_plugin_status( 'wpforms-lite/wpforms.php' ),
401
  'gutenberg_status' => $this->get_plugin_status( 'gutenberg/gutenberg.php' ),
402
  '_ajax_nonce' => wp_create_nonce( 'ast-block-templates-ajax-nonce' ),
403
+ 'button_text' => esc_html__( 'Starter Templates', 'ast-block-templates' ),
404
  'display_button_logo' => true,
405
  'popup_logo_uri' => AST_BLOCK_TEMPLATES_URI . 'dist/logo.svg',
406
  'button_logo' => AST_BLOCK_TEMPLATES_URI . 'dist/starter-template-logo.svg',
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.8
8
- Stable tag: 2.7.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -149,6 +149,9 @@ We are open to suggestions and would love to work on topics that our users are l
149
 
150
  == Changelog ==
151
 
 
 
 
152
  v2.7.1 - 7-October-2021
153
  - Security Improvement: Validate the site URL before processing the import request.
154
  - Security Improvement: Updated right file upload permission before importing images.
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.8
8
+ Stable tag: 2.7.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
149
 
150
  == Changelog ==
151
 
152
+ v2.7.2 - 7-October-2021
153
+ - Fix: No route was found matching the URL and request method.
154
+
155
  v2.7.1 - 7-October-2021
156
  - Security Improvement: Validate the site URL before processing the import request.
157
  - Security Improvement: Updated right file upload permission before importing images.