WP Add Mime Types - Version 1.0.1

Version Description

  • Fixed the display error if the setting value is empty for the first time.
Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.1

Files changed (2) hide show
  1. readme.txt +5 -1
  2. wp-add-mime-types.php +4 -3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Kimiya Kitani
3
  Tags: mime,file extention
4
  Requires at least: 3.0
5
  Tested up to: 3.5.2
6
- Stable tag: 1.0.0
7
 
8
  The plugin additionally allows the mime types and file extensions to WordPress.
9
 
@@ -38,9 +38,13 @@ You can see the list of allowed mime types and file extensions by WordPress.
38
 
39
  == Changelog ==
40
 
 
 
 
41
  = 1.0.0 =
42
  * First Released.
43
  * Language: English, Japanese
44
 
 
45
  == Upgrade Notice ==
46
 
3
  Tags: mime,file extention
4
  Requires at least: 3.0
5
  Tested up to: 3.5.2
6
+ Stable tag: 1.0.1
7
 
8
  The plugin additionally allows the mime types and file extensions to WordPress.
9
 
38
 
39
  == Changelog ==
40
 
41
+ = 1.0.1 =
42
+ * Fixed the display error if the setting value is empty for the first time.
43
+
44
  = 1.0.0 =
45
  * First Released.
46
  * Language: English, Japanese
47
 
48
+
49
  == Upgrade Notice ==
50
 
wp-add-mime-types.php CHANGED
@@ -3,7 +3,7 @@
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: 1.0.0
7
  Author: Kimiya Kitani
8
  Author URI: http://kitaney.jp/~kitani
9
  */
@@ -12,7 +12,7 @@ Author URI: http://kitaney.jp/~kitani
12
  load_plugin_textdomain('wp-add-mime-types', '/'.str_replace(ABSPATH, '', dirname(__FILE__)) . 'lang/');
13
 
14
  $default_var = array(
15
- 'wp_add_mime_types' => '1.0.0',
16
  );
17
 
18
  // Add Setting to WordPress 'Settings' menu.
@@ -46,6 +46,7 @@ function admin_settings_page(){
46
  }else
47
  $mime_type_values = unserialize($settings['mime_type_values']);
48
 
 
49
  // Update to WordPress Data.
50
  update_option('wp_add_mime_types_array', $settings);
51
 
@@ -97,7 +98,7 @@ foreach($allowed_mime_values as $type=>$value){
97
  <p><?php _e('* About the mime type value for the file extension, please search "mime type [file extension name] using a search engine.<br/> Ex. "epub = application/epub+zip in http://ja.wikipedia.org/wiki/EPUB."','wp-add-mime-types'); ?></p>
98
 
99
  <?php // If the permission is not allowed, the user can only read the setting. ?>
100
- <textarea name="mime_type_values" cols="100" rows="10" <?php if(!$permission) echo "disabled"; ?>><?php foreach ($mimes as $m_type=>$m_value) echo $m_type . "\t= " .$m_value . "\n"; ?></textarea>
101
  </fieldset>
102
 
103
  <br/>
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: 1.0.1
7
  Author: Kimiya Kitani
8
  Author URI: http://kitaney.jp/~kitani
9
  */
12
  load_plugin_textdomain('wp-add-mime-types', '/'.str_replace(ABSPATH, '', dirname(__FILE__)) . 'lang/');
13
 
14
  $default_var = array(
15
+ 'wp_add_mime_types' => '1.0.1',
16
  );
17
 
18
  // Add Setting to WordPress 'Settings' menu.
46
  }else
47
  $mime_type_values = unserialize($settings['mime_type_values']);
48
 
49
+
50
  // Update to WordPress Data.
51
  update_option('wp_add_mime_types_array', $settings);
52
 
98
  <p><?php _e('* About the mime type value for the file extension, please search "mime type [file extension name] using a search engine.<br/> Ex. "epub = application/epub+zip in http://ja.wikipedia.org/wiki/EPUB."','wp-add-mime-types'); ?></p>
99
 
100
  <?php // If the permission is not allowed, the user can only read the setting. ?>
101
+ <textarea name="mime_type_values" cols="100" rows="10" <?php if(!$permission) echo "disabled"; ?>><?php if(isset($mimes) && is_array($mimes)) foreach ($mimes as $m_type=>$m_value) echo $m_type . "\t= " .$m_value . "\n"; ?></textarea>
102
  </fieldset>
103
 
104
  <br/>