ThemeGrill Demo Importer - Version 1.7.9

Version Description

  • 16-02-2022 =
  • Tweak - Update static demo content url.
Download this release

Release Info

Developer themegrilldev
Plugin Icon 128x128 ThemeGrill Demo Importer
Version 1.7.9
Comparing to
See all releases

Code changes from version 1.7.8 to 1.7.9

includes/admin/class-demo-importer-status.php CHANGED
@@ -53,7 +53,7 @@ class TG_Demo_Importer_Status {
53
  */
54
  public static function get_demo_server_connection_status() {
55
  $output = '';
56
- $package_file_server = wp_remote_get( 'https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/README.md' );
57
  $http_response_code = wp_remote_retrieve_response_code( $package_file_server );
58
 
59
  if ( is_wp_error( $package_file_server ) || 200 !== (int) $http_response_code ) {
53
  */
54
  public static function get_demo_server_connection_status() {
55
  $output = '';
56
+ $package_file_server = wp_remote_get( 'https://d1sb0nhp4t2db4.cloudfront.net/README.md' );
57
  $http_response_code = wp_remote_retrieve_response_code( $package_file_server );
58
 
59
  if ( is_wp_error( $package_file_server ) || 200 !== (int) $http_response_code ) {
includes/class-demo-importer.php CHANGED
@@ -89,7 +89,7 @@ class TG_Demo_Importer {
89
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
90
 
91
  if ( false === $packages || ( isset( $packages->slug ) && $template !== $packages->slug ) ) {
92
- $raw_packages = wp_safe_remote_get( "https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/configs/{$template}.json" );
93
 
94
  if ( ! is_wp_error( $raw_packages ) ) {
95
  $packages = json_decode( wp_remote_retrieve_body( $raw_packages ) );
@@ -417,7 +417,7 @@ class TG_Demo_Importer {
417
  if ( isset( $available_packages->demos ) ) {
418
  foreach ( $available_packages->demos as $package_slug => $package_data ) {
419
  $plugins_list = isset( $package_data->plugins_list ) ? $package_data->plugins_list : array();
420
- $screenshot_url = "https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/resources/{$available_packages->slug}/{$package_slug}/screenshot.jpg";
421
 
422
  if ( isset( $request['browse'], $package_data->category ) && ! in_array( $request['browse'], $package_data->category, true ) ) {
423
  continue;
@@ -684,7 +684,7 @@ class TG_Demo_Importer {
684
  $upgrader = new TG_Demo_Pack_Upgrader( $skin );
685
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
686
  $packages = isset( $this->demo_packages->demos ) ? json_decode( wp_json_encode( $this->demo_packages->demos ), true ) : array();
687
- $result = $upgrader->install( "https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/packages/{$template}/{$slug}.zip" );
688
 
689
  if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
690
  $status['debug'] = $skin->get_upgrade_messages();
89
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
90
 
91
  if ( false === $packages || ( isset( $packages->slug ) && $template !== $packages->slug ) ) {
92
+ $raw_packages = wp_safe_remote_get( "https://d1sb0nhp4t2db4.cloudfront.net/configs/{$template}.json" );
93
 
94
  if ( ! is_wp_error( $raw_packages ) ) {
95
  $packages = json_decode( wp_remote_retrieve_body( $raw_packages ) );
417
  if ( isset( $available_packages->demos ) ) {
418
  foreach ( $available_packages->demos as $package_slug => $package_data ) {
419
  $plugins_list = isset( $package_data->plugins_list ) ? $package_data->plugins_list : array();
420
+ $screenshot_url = "https://d1sb0nhp4t2db4.cloudfront.net/resources/{$available_packages->slug}/{$package_slug}/screenshot.jpg";
421
 
422
  if ( isset( $request['browse'], $package_data->category ) && ! in_array( $request['browse'], $package_data->category, true ) ) {
423
  continue;
684
  $upgrader = new TG_Demo_Pack_Upgrader( $skin );
685
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
686
  $packages = isset( $this->demo_packages->demos ) ? json_decode( wp_json_encode( $this->demo_packages->demos ), true ) : array();
687
+ $result = $upgrader->install( "https://d1sb0nhp4t2db4.cloudfront.net/packages/{$template}/{$slug}.zip" );
688
 
689
  if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
690
  $status['debug'] = $skin->get_upgrade_messages();
includes/class-themegrill-demo-importer.php CHANGED
@@ -20,7 +20,7 @@ final class ThemeGrill_Demo_Importer {
20
  *
21
  * @var string
22
  */
23
- public $version = '1.7.8';
24
 
25
  /**
26
  * Theme single instance of this class.
20
  *
21
  * @var string
22
  */
23
+ public $version = '1.7.9';
24
 
25
  /**
26
  * Theme single instance of this class.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ThemeGrill
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
  Tested up to: 5.9
6
- Stable tag: 1.7.8
7
  License: GPLv3 or later
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -17,7 +17,7 @@ Get [free support](https://themegrill.com/support-forum/)
17
 
18
  == Notes ==
19
 
20
- * The plugin makes a call to our S3 server remotely to import static demo content.
21
 
22
  = Demo Importer in action: =
23
 
@@ -76,6 +76,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/themegrill/th
76
  3. Finally, Import the Demo with just one click.
77
 
78
  == Changelog ==
 
 
 
79
  = 1.7.8 - 10-02-2022 =
80
  * Support - Luza theme.
81
 
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
  Tested up to: 5.9
6
+ Stable tag: 1.7.9
7
  License: GPLv3 or later
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
17
 
18
  == Notes ==
19
 
20
+ * The plugin makes a call to our CloudFront server remotely to import static demo content.
21
 
22
  = Demo Importer in action: =
23
 
76
  3. Finally, Import the Demo with just one click.
77
 
78
  == Changelog ==
79
+ = 1.7.9 - 16-02-2022 =
80
+ * Tweak - Update static demo content url.
81
+
82
  = 1.7.8 - 10-02-2022 =
83
  * Support - Luza theme.
84
 
themegrill-demo-importer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ThemeGrill Demo Importer
4
  * Plugin URI: https://themegrill.com/demo-importer/
5
  * Description: Import ThemeGrill official themes demo content, widgets and theme settings with just one click.
6
- * Version: 1.7.8
7
  * Author: ThemeGrill
8
  * Author URI: https://themegrill.com
9
  * License: GPLv3 or later
3
  * Plugin Name: ThemeGrill Demo Importer
4
  * Plugin URI: https://themegrill.com/demo-importer/
5
  * Description: Import ThemeGrill official themes demo content, widgets and theme settings with just one click.
6
+ * Version: 1.7.9
7
  * Author: ThemeGrill
8
  * Author URI: https://themegrill.com
9
  * License: GPLv3 or later