Version Description
11.04.2020 = * Fixed: Unable to upload images to the WordPress Media Uploader due to wp_check_filetype_and_ext.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- includes/class-dsm-json-handler.php +5 -11
- readme.txt +4 -1
- supreme-modules-for-divi.php +2 -2
includes/class-dsm-json-handler.php
CHANGED
@@ -20,19 +20,13 @@ class DSM_JSON_Handler {
|
|
20 |
*
|
21 |
* @since 2.0.5
|
22 |
*/
|
23 |
-
public function dsm_check_filetype_and_ext( $
|
24 |
-
if (
|
25 |
-
|
|
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
if ( 'json' === $filetype['ext'] ) {
|
31 |
-
$args['ext'] = 'json';
|
32 |
-
$args['type'] = self::MIME_TYPE;
|
33 |
-
}
|
34 |
-
|
35 |
-
return $args;
|
36 |
}
|
37 |
|
38 |
/**
|
20 |
*
|
21 |
* @since 2.0.5
|
22 |
*/
|
23 |
+
public function dsm_check_filetype_and_ext( $types, $file, $filename, $mimes ) {
|
24 |
+
if ( false !== strpos( $filename, '.json' ) ) {
|
25 |
+
$types['ext'] = 'json';
|
26 |
+
$types['type'] = self::MIME_TYPE;
|
27 |
}
|
28 |
|
29 |
+
return $types;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -109,6 +109,9 @@ This is a common question that we get asked here every now and then which is why
|
|
109 |
|
110 |
|
111 |
== Changelog ==
|
|
|
|
|
|
|
112 |
= 2.0.6 – 11.04.2020 =
|
113 |
* Added: Allow JSON file through WordPress Media Uploader option in Divi Supreme Plugin Setting.
|
114 |
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.0.7
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
109 |
|
110 |
|
111 |
== Changelog ==
|
112 |
+
= 2.0.7 – 11.04.2020 =
|
113 |
+
* Fixed: Unable to upload images to the WordPress Media Uploader due to wp_check_filetype_and_ext.
|
114 |
+
|
115 |
= 2.0.6 – 11.04.2020 =
|
116 |
* Added: Allow JSON file through WordPress Media Uploader option in Divi Supreme Plugin Setting.
|
117 |
|
supreme-modules-for-divi.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
|
4 |
* Plugin URI: https://suprememodules.com
|
5 |
* Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: Supreme Modules
|
8 |
* Author URI: https://suprememodules.com/about-us/
|
9 |
* License: GPL2
|
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'DSM_VERSION' ) ) {
|
37 |
-
define( 'DSM_VERSION', '2.0.
|
38 |
}
|
39 |
if ( ! defined( 'DSM_SHORTCODE' ) ) {
|
40 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|
3 |
* Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
|
4 |
* Plugin URI: https://suprememodules.com
|
5 |
* Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
|
6 |
+
* Version: 2.0.7
|
7 |
* Author: Supreme Modules
|
8 |
* Author URI: https://suprememodules.com/about-us/
|
9 |
* License: GPL2
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'DSM_VERSION' ) ) {
|
37 |
+
define( 'DSM_VERSION', '2.0.7' );
|
38 |
}
|
39 |
if ( ! defined( 'DSM_SHORTCODE' ) ) {
|
40 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|