WP Add Mime Types - Version 2.0.4

Version Description

  • Fixed the help message in the administration menu.
Download this release

Release Info

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

Code changes from version 2.0.3 to 2.0.4

includes/admin.php CHANGED
@@ -86,7 +86,7 @@ foreach($allowed_mime_values as $type=>$value){
86
 
87
  <fieldset style="border:1px solid #777777; width: 750px; padding-left: 6px;">
88
  <legend><h3><?php _e('Add Values','wp-add-mime-types'); ?></h3></legend>
89
- <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<br/>Reference: <a href="http://www.iana.org/assignments/media-types/media-types.xhtml" target="_blank">Media Types on the Internet Assigned Numbers Authority (IANA)</a><br/>* If the added mime type does not work, please turn off the mime type setting or deactivate other mime type plugins.','wp-add-mime-types'); ?></p>
90
  <p><span style="color:red;"><?php if(is_multisite() && is_plugin_active_for_network($plugin_basename)) _e('* The site administrator cannot add the value for mime type because the multisite is enabled. <br/>Please contact the multisite administrator if you would like to add the value.','wp-add-mime-types'); ?></span></p>
91
 
92
  <?php // If the permission is not allowed, the user can only read the setting. ?>
86
 
87
  <fieldset style="border:1px solid #777777; width: 750px; padding-left: 6px;">
88
  <legend><h3><?php _e('Add Values','wp-add-mime-types'); ?></h3></legend>
89
+ <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<br/>Reference: <a href="http://www.iana.org/assignments/media-types/media-types.xhtml" target="_blank">Media Types on the Internet Assigned Numbers Authority (IANA)</a><br/>* If the added mime type does not work, please deactivate other mime type plugins or the setting of other mime type plugins.','wp-add-mime-types'); ?></p>
90
  <p><span style="color:red;"><?php if(is_multisite() && is_plugin_active_for_network($plugin_basename)) _e('* The site administrator cannot add the value for mime type because the multisite is enabled. <br/>Please contact the multisite administrator if you would like to add the value.','wp-add-mime-types'); ?></span></p>
91
 
92
  <?php // If the permission is not allowed, the user can only read the setting. ?>
includes/network-admin.php CHANGED
@@ -86,7 +86,7 @@ foreach($allowed_mime_values as $type=>$value){
86
 
87
  <fieldset style="border:1px solid #777777; width: 750px; padding-left: 6px;">
88
  <legend><h3><?php _e('Add Values','wp-add-mime-types'); ?></h3></legend>
89
- <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<br/>Reference: <a href="http://www.iana.org/assignments/media-types/media-types.xhtml" target="_blank">Media Types on the Internet Assigned Numbers Authority (IANA)</a><br/>* If the added mime type does not work, please turn off the mime type setting or deactivate other mime type plugins.','wp-add-mime-types'); ?></p>
90
 
91
  <?php // If the permission is not allowed, the user can only read the setting. ?>
92
  <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>
86
 
87
  <fieldset style="border:1px solid #777777; width: 750px; padding-left: 6px;">
88
  <legend><h3><?php _e('Add Values','wp-add-mime-types'); ?></h3></legend>
89
+ <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<br/>Reference: <a href="http://www.iana.org/assignments/media-types/media-types.xhtml" target="_blank">Media Types on the Internet Assigned Numbers Authority (IANA)</a><br/>* If the added mime type does not work, please deactivate other mime type plugins or the setting of other mime type plugins.','wp-add-mime-types'); ?></p>
90
 
91
  <?php // If the permission is not allowed, the user can only read the setting. ?>
92
  <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>
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: 4.5.2
6
- Stable tag: 2.0.3
7
 
8
  The plugin additionally allows the mime types and file extensions to WordPress.
9
 
@@ -37,7 +37,7 @@ You can see the list of allowed mime types and file extensions by WordPress.
37
  == Frequently Asked Questions ==
38
 
39
  = Cannot work =
40
- If the added mime type does not work, please turn off the mime type setting or deactivate other mime type plugins.
41
 
42
  For example, if you install Media Library Assistant plugin, please turn off "Enable Upload MIME Type Support" in the Upload tag in this plugin setting.
43
 
@@ -58,6 +58,9 @@ Yes, each setting values are saved as the other setting items.
58
 
59
  == Changelog ==
60
 
 
 
 
61
  = 2.0.3 =
62
  * Fixed the help message in the administration menu.
63
  * If the added mime type does not work, please turn off the mime type setting or deactivate other mime type plugins.
3
  Tags: mime,file extention
4
  Requires at least: 3.0
5
  Tested up to: 4.5.2
6
+ Stable tag: 2.0.4
7
 
8
  The plugin additionally allows the mime types and file extensions to WordPress.
9
 
37
  == Frequently Asked Questions ==
38
 
39
  = Cannot work =
40
+ If the added mime type does not work, please deactivate other mime type plugins or the setting of other mime type plugins.
41
 
42
  For example, if you install Media Library Assistant plugin, please turn off "Enable Upload MIME Type Support" in the Upload tag in this plugin setting.
43
 
58
 
59
  == Changelog ==
60
 
61
+ = 2.0.4 =
62
+ * Fixed the help message in the administration menu.
63
+
64
  = 2.0.3 =
65
  * Fixed the help message in the administration menu.
66
  * If the added mime type does not work, please turn off the mime type setting or deactivate other mime type plugins.
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: 2.0.3
7
  Author: Kimiya Kitani
8
  Author URI: http://kitaney-wordpress.blogspot.jp/
9
  Text Domain: wp-add-mime-types
@@ -19,7 +19,7 @@ add_action('plugins_loaded', 'enable_language_translation');
19
  $plugin_basename = plugin_basename ( __FILE__ );
20
 
21
  $default_var = array(
22
- 'wp_add_mime_types' => '2.0.3',
23
  );
24
 
25
  // Add Setting to WordPress 'Settings' menu for Multisite.
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.0.4
7
  Author: Kimiya Kitani
8
  Author URI: http://kitaney-wordpress.blogspot.jp/
9
  Text Domain: wp-add-mime-types
19
  $plugin_basename = plugin_basename ( __FILE__ );
20
 
21
  $default_var = array(
22
+ 'wp_add_mime_types' => '2.0.4',
23
  );
24
 
25
  // Add Setting to WordPress 'Settings' menu for Multisite.