Acme Demo Setup - Version 1.0.7

Version Description

Download this release

Release Info

Developer acmethemes
Plugin Icon 128x128 Acme Demo Setup
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.6 to 1.0.7

Files changed (3) hide show
  1. acme-demo-setup.php +2 -2
  2. inc/admin/upload.php +4 -3
  3. readme.txt +4 -1
acme-demo-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Acme Demo Setup
4
  Plugin URI:
5
  Description: One click demo import
6
- Version: 1.0.6
7
  Author: Acme Themes
8
  Author URI: https://www.acmethemes.com/
9
  License: GPLv2 or later
@@ -15,7 +15,7 @@ if ( !function_exists( 'add_action' ) ) {
15
  exit;
16
  }
17
  /*Define Constants for this plugin*/
18
- define( 'ACME_DEMO_SETUP_VERSION', '1.0.6' );
19
  define( 'ACME_DEMO_SETUP_PATH', plugin_dir_path( __FILE__ ) );
20
  define( 'ACME_DEMO_SETUP_URL', plugin_dir_url( __FILE__ ) );
21
 
3
  Plugin Name: Acme Demo Setup
4
  Plugin URI:
5
  Description: One click demo import
6
+ Version: 1.0.7
7
  Author: Acme Themes
8
  Author URI: https://www.acmethemes.com/
9
  License: GPLv2 or later
15
  exit;
16
  }
17
  /*Define Constants for this plugin*/
18
+ define( 'ACME_DEMO_SETUP_VERSION', '1.0.7' );
19
  define( 'ACME_DEMO_SETUP_PATH', plugin_dir_path( __FILE__ ) );
20
  define( 'ACME_DEMO_SETUP_URL', plugin_dir_url( __FILE__ ) );
21
 
inc/admin/upload.php CHANGED
@@ -112,13 +112,14 @@ if( !class_exists( 'Acme_Demo_Setup') ):
112
  $dirlist = $wp_filesystem->dirlist($destination);
113
  foreach ( (array) $dirlist as $filename => $fileinfo ) {
114
  $filetype = wp_check_filetype($filename);
115
- if( 'xml' == $filetype['ext'] ){
 
116
  $required_files['xml'] = $destination.$filename;
117
  }
118
- elseif ('wie' == $filetype['ext'] ){
119
  $required_files['wie'] = $destination.$filename;
120
  }
121
- elseif ( 'dat' == $filetype['ext'] ){
122
  $required_files['dat'] = $destination.$filename;
123
  }
124
  else{
112
  $dirlist = $wp_filesystem->dirlist($destination);
113
  foreach ( (array) $dirlist as $filename => $fileinfo ) {
114
  $filetype = wp_check_filetype($filename);
115
+ $filetype_alternative = substr($filename, strrpos($filename, '.') + 1);
116
+ if( 'xml' == $filetype['ext'] || 'xml' == $filetype_alternative){
117
  $required_files['xml'] = $destination.$filename;
118
  }
119
+ elseif ('wie' == $filetype['ext'] || 'wie' == $filetype_alternative){
120
  $required_files['wie'] = $destination.$filename;
121
  }
122
+ elseif ( 'dat' == $filetype['ext'] || 'dat' == $filetype_alternative){
123
  $required_files['dat'] = $destination.$filename;
124
  }
125
  else{
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: acmethemes, codersantosh
4
  Tags: demo, dummydata, import, acmethemes, themes, oneclick, customizer, widget
5
  Requires at least: 4.5
6
  Tested up to: 4.9.1
7
- Stable tag: 1.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -94,6 +94,9 @@ If you have the issues on the plugin [Visit Support Page](https://wordpress.org/
94
 
95
  == Changelog ==
96
 
 
 
 
97
  = 1.0.6
98
  * Fixed : Memory Limit on parser
99
 
4
  Tags: demo, dummydata, import, acmethemes, themes, oneclick, customizer, widget
5
  Requires at least: 4.5
6
  Tested up to: 4.9.1
7
+ Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
94
 
95
  == Changelog ==
96
 
97
+ = 1.0.7
98
+ * Fixed : Alternative File extension checker
99
+
100
  = 1.0.6
101
  * Fixed : Memory Limit on parser
102