Widget Importer & Exporter - Version 1.4.3

Version Description

Download this release

Release Info

Developer stevengliebe
Plugin Icon 128x128 Widget Importer & Exporter
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

includes/mime-types.php CHANGED
@@ -33,7 +33,7 @@ function wie_add_mime_types( $mime_types ) {
33
  add_filter( 'upload_mimes', 'wie_add_mime_types' );
34
 
35
  /**
36
- * Disable real MIME check on WordPress 4.7.1
37
  *
38
  * This is a workaround for a WordPress 4.7.1 bug affecting uploads. Other versions not affected.
39
  * This workaround will only take effect on installs of 4.7.1 and only during import.
@@ -46,8 +46,11 @@ add_filter( 'upload_mimes', 'wie_add_mime_types' );
46
  */
47
  function wie_disable_real_mime_check( $data, $file, $filename, $mimes ) {
48
 
49
- // WordPress 4.7.1 only
50
- if ( get_bloginfo( 'version' ) != '4.7.1' ) {
 
 
 
51
  return;
52
  }
53
 
33
  add_filter( 'upload_mimes', 'wie_add_mime_types' );
34
 
35
  /**
36
+ * Disable real MIME check on WordPress 4.7.1 and 4.7.2
37
  *
38
  * This is a workaround for a WordPress 4.7.1 bug affecting uploads. Other versions not affected.
39
  * This workaround will only take effect on installs of 4.7.1 and only during import.
46
  */
47
  function wie_disable_real_mime_check( $data, $file, $filename, $mimes ) {
48
 
49
+ $wp_version = get_bloginfo( 'version' );
50
+
51
+ // WordPress 4.7.1 and 4.7.2 are affected only
52
+ // 4.7.2 was rushed out as security update without the upload bug being fixed
53
+ if ( $wp_version != '4.7.1' && $wp_version != '4.7.2' ) {
54
  return;
55
  }
56
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: churchthemes, stevengliebe, mauryaratan, wido
3
  Donate link: https://churchthemes.com/project-support/
4
  Tags: widgets, widget, importer, exporter, import, export, widget import, widget export, widget importer, widget exporter, backup, migration
5
  Requires at least: 3.5
6
- Tested up to: 4.7.1
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
3
  Donate link: https://churchthemes.com/project-support/
4
  Tags: widgets, widget, importer, exporter, import, export, widget import, widget export, widget importer, widget exporter, backup, migration
5
  Requires at least: 3.5
6
+ Tested up to: 4.7.2
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
widget-importer-exporter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Widget Importer & Exporter
4
  * Plugin URI: https://churchthemes.com/plugins/widget-importer-exporter
5
  * Description: Imports and exports widgets.
6
- * Version: 1.4.2
7
  * Author: churchthemes.com
8
  * Author URI: https://churchthemes.com
9
  * License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
3
  * Plugin Name: Widget Importer & Exporter
4
  * Plugin URI: https://churchthemes.com/plugins/widget-importer-exporter
5
  * Description: Imports and exports widgets.
6
+ * Version: 1.4.3
7
  * Author: churchthemes.com
8
  * Author URI: https://churchthemes.com
9
  * License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html