Advanced Import : One Click Import for WordPress or Theme Demo Data - Version 1.3.9

Version Description

  • 2022-11-23 =
  • Added : Missing check_admin_referer in one place
  • Updated: Uses proper sanitization and escaping functions in some places
Download this release

Release Info

Developer addonspress
Plugin Icon 128x128 Advanced Import : One Click Import for WordPress or Theme Demo Data
Version 1.3.9
Comparing to
See all releases

Code changes from version 1.3.8 to 1.3.9

admin/class-advanced-import-admin.php CHANGED
@@ -1120,7 +1120,7 @@ class Advanced_Import_Admin {
1120
  check_admin_referer( 'advanced-import' );
1121
 
1122
  if ( isset( $_POST['template_url'] ) ) {
1123
- $this->current_template_url = is_array( $_POST['template_url'] ) ? (array) $_POST['template_url'] : sanitize_text_field( $_POST['template_url'] );
1124
  $this->current_template_type = sanitize_text_field( $_POST['template_type'] );
1125
  }
1126
 
@@ -1193,7 +1193,7 @@ class Advanced_Import_Admin {
1193
  );
1194
  }
1195
  if ( isset( $_POST['template_url'] ) ) {
1196
- $this->current_template_url = is_array( $_POST['template_url'] ) ? (array) $_POST['template_url'] : sanitize_text_field( $_POST['template_url'] );
1197
  $this->current_template_type = sanitize_text_field( $_POST['template_type'] );
1198
  }
1199
 
@@ -1322,7 +1322,7 @@ class Advanced_Import_Admin {
1322
  }
1323
 
1324
  /*Import 10 posts at a time*/
1325
- $limit = 10 + ( isset( $_REQUEST['retry_count'] ) ? (int) $_REQUEST['retry_count'] : 0 );
1326
 
1327
  $limit = apply_filters( 'advanced_import_limit_at_time', $limit );
1328
  $x = 0;
@@ -2425,7 +2425,7 @@ class Advanced_Import_Admin {
2425
  apply_filters( 'advanced_import_complete_message', $message );
2426
 
2427
  do_action( 'advanced_import_before_complete_screen' );
2428
- echo $message;
2429
  do_action( 'advanced_import_after_complete_screen' );
2430
  exit;
2431
  }
1120
  check_admin_referer( 'advanced-import' );
1121
 
1122
  if ( isset( $_POST['template_url'] ) ) {
1123
+ $this->current_template_url = is_array( $_POST['template_url'] ) ? (array) $_POST['template_url'] : sanitize_url( $_POST['template_url'] );
1124
  $this->current_template_type = sanitize_text_field( $_POST['template_type'] );
1125
  }
1126
 
1193
  );
1194
  }
1195
  if ( isset( $_POST['template_url'] ) ) {
1196
+ $this->current_template_url = is_array( $_POST['template_url'] ) ? (array) $_POST['template_url'] : sanitize_url( $_POST['template_url'] );
1197
  $this->current_template_type = sanitize_text_field( $_POST['template_type'] );
1198
  }
1199
 
1322
  }
1323
 
1324
  /*Import 10 posts at a time*/
1325
+ $limit = 10 + ( isset( $_REQUEST['retry_count'] ) ? absint($_REQUEST['retry_count']) : 0 );
1326
 
1327
  $limit = apply_filters( 'advanced_import_limit_at_time', $limit );
1328
  $x = 0;
2425
  apply_filters( 'advanced_import_complete_message', $message );
2426
 
2427
  do_action( 'advanced_import_before_complete_screen' );
2428
+ echo advanced_import_allowed_html( $message );
2429
  do_action( 'advanced_import_after_complete_screen' );
2430
  exit;
2431
  }
advanced-import.php CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'WPINC' ) ) {
14
  * Plugin Name: Advanced Import
15
  * Plugin URI: https://addonspress.com/item/advanced-import
16
  * Description: Easily import demo data starter site packages or Migrate your site data
17
- * Version: 1.3.8
18
  * Author: AddonsPress
19
  * Author URI: https://addonspress.com/
20
  * License: GPL-2.0+
@@ -24,7 +24,7 @@ if ( ! defined( 'WPINC' ) ) {
24
  */
25
 
26
  /*Define Constants for this plugin*/
27
- define( 'ADVANCED_IMPORT_VERSION', '1.3.8' );
28
  define( 'ADVANCED_IMPORT_PLUGIN_NAME', 'advanced-import' );
29
  define( 'ADVANCED_IMPORT_PATH', plugin_dir_path( __FILE__ ) );
30
  define( 'ADVANCED_IMPORT_URL', plugin_dir_url( __FILE__ ) );
14
  * Plugin Name: Advanced Import
15
  * Plugin URI: https://addonspress.com/item/advanced-import
16
  * Description: Easily import demo data starter site packages or Migrate your site data
17
+ * Version: 1.3.9
18
  * Author: AddonsPress
19
  * Author URI: https://addonspress.com/
20
  * License: GPL-2.0+
24
  */
25
 
26
  /*Define Constants for this plugin*/
27
+ define( 'ADVANCED_IMPORT_VERSION', '1.3.9' );
28
  define( 'ADVANCED_IMPORT_PLUGIN_NAME', 'advanced-import' );
29
  define( 'ADVANCED_IMPORT_PATH', plugin_dir_path( __FILE__ ) );
30
  define( 'ADVANCED_IMPORT_URL', plugin_dir_url( __FILE__ ) );
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: import, advanced import, demo import, theme import, widget import, customi
6
  Requires at least: 5.0
7
  Tested up to: 6.1
8
  Requires PHP: 5.6.20
9
- Stable tag: 1.3.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -224,6 +224,10 @@ Yes, many themes are using this plugin, for an example, you can look on [CosmosW
224
 
225
  == Changelog ==
226
 
 
 
 
 
227
  = 1.3.8 - 2022-11-11 =
228
  * Updated : Tested up WordPress 6.1
229
  * Fixed : Minor changes
6
  Requires at least: 5.0
7
  Tested up to: 6.1
8
  Requires PHP: 5.6.20
9
+ Stable tag: 1.3.9
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
224
 
225
  == Changelog ==
226
 
227
+ = 1.3.9 - 2022-11-23 =
228
+ * Added : Missing check_admin_referer in one place
229
+ * Updated: Uses proper sanitization and escaping functions in some places
230
+
231
  = 1.3.8 - 2022-11-11 =
232
  * Updated : Tested up WordPress 6.1
233
  * Fixed : Minor changes