Version Description
Download this release
Release Info
Developer | wp_media |
Plugin | Increase Max Upload Filesize |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
- readme.txt +5 -1
- upload-max-file-size.php +23 -2
- upload_max_file_size.php +2 -2
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: max upload file size, increase upload limit, increase file size limit, upl
|
|
4 |
Requires at least: 3.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -55,6 +55,10 @@ Yes, it works with all servers. But, please know that server adjusted limits can
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
58 |
= v2.0.3 =
|
59 |
* 2019/11/13
|
60 |
* Fix: The plugin does not have a valid header.
|
4 |
Requires at least: 3.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 2.0.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= v2.0.4 =
|
59 |
+
* 2019/11/16
|
60 |
+
* Fix: Avoid plugin to display twice in the plugin listing.
|
61 |
+
|
62 |
= v2.0.3 =
|
63 |
* 2019/11/13
|
64 |
* Fix: The plugin does not have a valid header.
|
upload-max-file-size.php
CHANGED
@@ -5,14 +5,14 @@
|
|
5 |
* Author: Imagify
|
6 |
* Author URI: https://wordpress.org/plugins/imagify/
|
7 |
* Plugin URI: https://wordpress.org/plugins/upload-max-file-size/
|
8 |
-
* Version: 2.0.
|
9 |
* License: GPL2
|
10 |
* Text Domain: upload-max-file-size
|
11 |
*/
|
12 |
|
13 |
namespace UMFS;
|
14 |
|
15 |
-
define( 'UMFS_VERSION', '2.0.
|
16 |
define( 'UMFS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
17 |
define( 'UMFS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
18 |
|
@@ -40,6 +40,7 @@ class Plugin {
|
|
40 |
|
41 |
self::init_card();
|
42 |
self::process_settings();
|
|
|
43 |
}
|
44 |
|
45 |
add_filter( 'upload_size_limit', array( __CLASS__, 'upload_max_increase_upload' ) );
|
@@ -287,6 +288,26 @@ class Plugin {
|
|
287 |
|
288 |
return $max_size;
|
289 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
}
|
291 |
|
292 |
add_action( 'init', array( 'UMFS\Plugin', 'init' ) );
|
5 |
* Author: Imagify
|
6 |
* Author URI: https://wordpress.org/plugins/imagify/
|
7 |
* Plugin URI: https://wordpress.org/plugins/upload-max-file-size/
|
8 |
+
* Version: 2.0.4
|
9 |
* License: GPL2
|
10 |
* Text Domain: upload-max-file-size
|
11 |
*/
|
12 |
|
13 |
namespace UMFS;
|
14 |
|
15 |
+
define( 'UMFS_VERSION', '2.0.4' );
|
16 |
define( 'UMFS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
17 |
define( 'UMFS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
18 |
|
40 |
|
41 |
self::init_card();
|
42 |
self::process_settings();
|
43 |
+
self::maybe_force_activation();
|
44 |
}
|
45 |
|
46 |
add_filter( 'upload_size_limit', array( __CLASS__, 'upload_max_increase_upload' ) );
|
288 |
|
289 |
return $max_size;
|
290 |
}
|
291 |
+
|
292 |
+
/**
|
293 |
+
* Force activation to the right plugin file to avoid double headers after upgrading to 2.0.X.
|
294 |
+
*
|
295 |
+
* @return void
|
296 |
+
*/
|
297 |
+
public static function maybe_force_activation() {
|
298 |
+
if ( ! is_admin() ) {
|
299 |
+
return;
|
300 |
+
}
|
301 |
+
|
302 |
+
if ( ! is_plugin_active( 'upload-max-file-size/upload-max-file-size.php' ) ) {
|
303 |
+
activate_plugin( 'upload-max-file-size/upload-max-file-size.php' );
|
304 |
+
}
|
305 |
+
|
306 |
+
if ( is_plugin_active( 'upload-max-file-size/upload-max-file-size.php' ) && file_exists( UMFS_PLUGIN_PATH . 'upload_max_file_size.php' ) ) {
|
307 |
+
@unlink( UMFS_PLUGIN_PATH . 'upload_max_file_size.php' );
|
308 |
+
wp_safe_redirect( admin_url( 'plugins.php' ) );
|
309 |
+
}
|
310 |
+
}
|
311 |
}
|
312 |
|
313 |
add_action( 'init', array( 'UMFS\Plugin', 'init' ) );
|
upload_max_file_size.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* Author: Imagify
|
6 |
* Author URI: https://wordpress.org/plugins/imagify/
|
7 |
* Plugin URI: https://wordpress.org/plugins/upload-max-file-size/
|
8 |
-
* Version: 2.0.
|
9 |
* License: GPL2
|
10 |
* Text Domain: upload-max-file-size
|
11 |
*/
|
12 |
|
13 |
// Avoid auto-deactivation after upgrading to 2.0.
|
14 |
-
require_once plugin_dir_path( __FILE__ ) . 'upload-max-file-size.php';
|
5 |
* Author: Imagify
|
6 |
* Author URI: https://wordpress.org/plugins/imagify/
|
7 |
* Plugin URI: https://wordpress.org/plugins/upload-max-file-size/
|
8 |
+
* Version: 2.0.4
|
9 |
* License: GPL2
|
10 |
* Text Domain: upload-max-file-size
|
11 |
*/
|
12 |
|
13 |
// Avoid auto-deactivation after upgrading to 2.0.
|
14 |
+
require_once plugin_dir_path( __FILE__ ) . 'upload-max-file-size.php';
|