Simple 301 Redirects – Addon – Bulk Uploader - Version 1.0.11

Version Description

  • Addition of another mime type
  • Addition of some error code to help determine mime type issues
Download this release

Release Info

Developer ashdurham
Plugin Icon 128x128 Simple 301 Redirects – Addon – Bulk Uploader
Version 1.0.11
Comparing to
See all releases

Code changes from version 1.0.10 to 1.0.11

Files changed (2) hide show
  1. readme.txt +10 -2
  2. simple-301-bulk-uploader.php +11 -3
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ashdurham
3
  Donate link: http://durham.net.au/donate/
4
  Tags: simple 301 redirects, bulk upload, csv, 301, redirects
5
  Requires at least: 3.0.1
6
- Tested up to: 3.8.1
7
- Stable tag: 1.0.10
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -68,6 +68,10 @@ Have a question thats not listed? Get support either on the support forums here
68
 
69
  == Changelog ==
70
 
 
 
 
 
71
  = 1.0.10 =
72
  * Addition of another mime type found in Firefox
73
 
@@ -103,6 +107,10 @@ Have a question thats not listed? Get support either on the support forums here
103
 
104
  == Upgrade Notice ==
105
 
 
 
 
 
106
  = 1.0.10 =
107
  * Addition of another mime type found in Firefox
108
 
3
  Donate link: http://durham.net.au/donate/
4
  Tags: simple 301 redirects, bulk upload, csv, 301, redirects
5
  Requires at least: 3.0.1
6
+ Tested up to: 3.9.1
7
+ Stable tag: 1.0.11
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.0.11 =
72
+ * Addition of another mime type
73
+ * Addition of some error code to help determine mime type issues
74
+
75
  = 1.0.10 =
76
  * Addition of another mime type found in Firefox
77
 
107
 
108
  == Upgrade Notice ==
109
 
110
+ = 1.0.11 =
111
+ * Addition of another mime type
112
+ * Addition of some error code to help determine mime type issues
113
+
114
  = 1.0.10 =
115
  * Addition of another mime type found in Firefox
116
 
simple-301-bulk-uploader.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple 301 Redirects - Addon - Bulk CSV Uploader
4
  Plugin URI: http://kingpro.me/plugins/support-plugins/simple-301-redirects-addon-bulk-csv-uploader
5
  Description: Adds the ability to upload a CSV to populate the Simple 301 Redirects plugin
6
- Version: 1.0.7
7
  Author: Ash Durham
8
  Author URI: http://durham.net.au/
9
  License: GPL2
@@ -108,6 +108,7 @@ if (!class_exists("Bulk301Uploader")) {
108
  'application/vnd.msexcel',
109
  'application/octet-stream',
110
  'application/data',
 
111
  'application/txt',
112
  'text/anytext',
113
  'text/csv',
@@ -150,8 +151,15 @@ if (!class_exists("Bulk301Uploader")) {
150
  }
151
  else
152
  {
153
- $report .= "Invalid file. Use the below for debugging and when asking for support.<br /><br />";
154
- $report .= "File: ".print_r($data, 1);
 
 
 
 
 
 
 
155
  }
156
 
157
  if ($auto_detect == 1) ini_set('auto_detect_line_endings',FALSE);
3
  Plugin Name: Simple 301 Redirects - Addon - Bulk CSV Uploader
4
  Plugin URI: http://kingpro.me/plugins/support-plugins/simple-301-redirects-addon-bulk-csv-uploader
5
  Description: Adds the ability to upload a CSV to populate the Simple 301 Redirects plugin
6
+ Version: 1.0.11
7
  Author: Ash Durham
8
  Author URI: http://durham.net.au/
9
  License: GPL2
108
  'application/vnd.msexcel',
109
  'application/octet-stream',
110
  'application/data',
111
+ 'application/x-csv',
112
  'application/txt',
113
  'text/anytext',
114
  'text/csv',
151
  }
152
  else
153
  {
154
+ $report .= "<strong>Invalid file</strong>. Use the below for debugging and when asking for support.<br /><br />";
155
+ $report .= "<strong>File</strong>: ".print_r($data, 1);
156
+ if (!in_array($data["type"], $mime_types))
157
+ {
158
+ $report .= "<br /><br /><strong>Approved Mime Types</strong>:<br />";
159
+ foreach ($mime_types as $mtype)
160
+ $report .= $mtype."<br />";
161
+ $report .= "<br />If you are certain that your filetype should be in this list, please let us know on the <a href='http://wordpress.org/support/plugin/simple-301-redirects-addon-bulk-uploader' target='_blank'>forums</a>.";
162
+ }
163
  }
164
 
165
  if ($auto_detect == 1) ini_set('auto_detect_line_endings',FALSE);