WP Add Mime Types - Version 2.5.8

Version Description

  • Fixed the issue of the media uploads failing when activating this plugin for the first time, if the plugin settings are not saved whenever.
Download this release

Release Info

Developer kimipooh
Plugin Icon wp plugin WP Add Mime Types
Version 2.5.8
Comparing to
See all releases

Code changes from version 2.5.7 to 2.5.8

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wp-add-mime-types.php +4 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: mime,file extention
4
  Requires at least: 4.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.6
7
- Stable tag: 2.5.7
8
  License: GPL v2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,9 @@ Yes, each setting values are saved as the other setting items.
81
  4. Security Options
82
 
83
  == Changelog ==
 
 
 
84
  = 2.5.7 =
85
  * Removed the folder (trunk) for this plugin in this plugin folder. The “trunk” folder was not needed. Due to this, activating the plugin in version 2.5.6, you might get an error message "Error: The plugin does not have a valid header".
86
 
4
  Requires at least: 4.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.6
7
+ Stable tag: 2.5.8
8
  License: GPL v2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
  4. Security Options
82
 
83
  == Changelog ==
84
+ = 2.5.8 =
85
+ * Fixed the issue of the media uploads failing when activating this plugin for the first time, if the plugin settings are not saved whenever.
86
+
87
  = 2.5.7 =
88
  * Removed the folder (trunk) for this plugin in this plugin folder. The “trunk” folder was not needed. Due to this, activating the plugin in version 2.5.6, you might get an error message "Error: The plugin does not have a valid header".
89
 
wp-add-mime-types.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: WP Add Mime Types
4
  Plugin URI:
5
  Description: The plugin additionally allows the mime types and file extensions to WordPress.
6
- Version: 2.5.7
7
  Author: Kimiya Kitani
8
  Author URI: http://kitaney-wordpress.blogspot.jp/
9
  Text Domain: wp-add-mime-types
10
  Domain Path: /lang
11
  */
12
- define('WAMT_DEFAULT_VAR', '2.5.7');
13
  define('WAMT_PLUGIN_DIR', 'wp-add-mime-types');
14
  define('WAMT_PLUGIN_NAME', 'wp-add-mime-types');
15
  define('WAMT_PLUGIN_BASENAME', WAMT_PLUGIN_DIR . '/' . WAMT_PLUGIN_NAME . '.php');
@@ -96,7 +96,7 @@ function wamt_add_allow_upload_extension_exception( $data, $file, $filename,$mim
96
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
97
 
98
  if(!isset($settings['mime_type_values']) || empty($settings['mime_type_values']))
99
- return compact( 'ext', 'type', 'proper_filename' );
100
  else
101
  $mime_type_values = unserialize($settings['mime_type_values']);
102
 
@@ -141,6 +141,7 @@ function wamt_add_allow_upload_extension_exception( $data, $file, $filename,$mim
141
  return $data;
142
  }
143
 
 
144
  $flag = false;
145
  if(!empty($mime_type_values)){
146
  foreach ((array)$mime_type_values as $line){
3
  Plugin Name: WP Add Mime Types
4
  Plugin URI:
5
  Description: The plugin additionally allows the mime types and file extensions to WordPress.
6
+ Version: 2.5.8
7
  Author: Kimiya Kitani
8
  Author URI: http://kitaney-wordpress.blogspot.jp/
9
  Text Domain: wp-add-mime-types
10
  Domain Path: /lang
11
  */
12
+ define('WAMT_DEFAULT_VAR', '2.5.8');
13
  define('WAMT_PLUGIN_DIR', 'wp-add-mime-types');
14
  define('WAMT_PLUGIN_NAME', 'wp-add-mime-types');
15
  define('WAMT_PLUGIN_BASENAME', WAMT_PLUGIN_DIR . '/' . WAMT_PLUGIN_NAME . '.php');
96
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
97
 
98
  if(!isset($settings['mime_type_values']) || empty($settings['mime_type_values']))
99
+ return $data;
100
  else
101
  $mime_type_values = unserialize($settings['mime_type_values']);
102
 
141
  return $data;
142
  }
143
 
144
+
145
  $flag = false;
146
  if(!empty($mime_type_values)){
147
  foreach ((array)$mime_type_values as $line){