Version Description
Release date: 21th August 2017
- [Fix] Better sanitize post data when saving settings.
Download this release
Release Info
Developer | jepsonrae |
Plugin | Resize Image After Upload |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- readme.txt +7 -1
- resize-image-after-upload.php +10 -10
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/resizeImage
|
|
4 |
Tags: image, resize, rescale, bulk resize, bulk rescale, downsize,
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.8.
|
8 |
|
9 |
Automatically resize your images after upload using this plugin. Specify height&width, the plugin will do the rest quickly and transparently.
|
10 |
|
@@ -43,6 +43,12 @@ Is that simple, just give it a try, it is safe and free! :-)
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
= 1.8.1 =
|
47 |
|
48 |
Release date: 18th June 2017
|
4 |
Tags: image, resize, rescale, bulk resize, bulk rescale, downsize,
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.8.2
|
8 |
|
9 |
Automatically resize your images after upload using this plugin. Specify height&width, the plugin will do the rest quickly and transparently.
|
10 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 1.8.2 =
|
47 |
+
|
48 |
+
Release date: 21th August 2017
|
49 |
+
|
50 |
+
* [Fix] Better sanitize post data when saving settings.
|
51 |
+
|
52 |
= 1.8.1 =
|
53 |
|
54 |
Release date: 18th June 2017
|
resize-image-after-upload.php
CHANGED
@@ -24,7 +24,7 @@ along with this program; if not, write to the Free Software
|
|
24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
25 |
*/
|
26 |
|
27 |
-
$PLUGIN_VERSION = '1.8.
|
28 |
$DEBUG_LOGGER = false;
|
29 |
|
30 |
|
@@ -120,16 +120,16 @@ function jr_uploadresize_options(){
|
|
120 |
|
121 |
if(isset($_POST['jr_options_update'])) {
|
122 |
|
123 |
-
$resizing_enabled =
|
124 |
-
$force_jpeg_recompression =
|
125 |
|
126 |
-
$max_width =
|
127 |
-
$max_height =
|
128 |
-
$compression_level =
|
129 |
|
130 |
-
$convert_png_to_jpg =
|
131 |
-
$convert_gif_to_jpg =
|
132 |
-
$convert_bmp_to_jpg =
|
133 |
|
134 |
|
135 |
// If input is not an integer, use previous setting
|
@@ -255,7 +255,7 @@ function jr_uploadresize_options(){
|
|
255 |
<p>This plugin was written for free (as in free beer) by me, <a href="http://philr.ae" target="_blank">Phil Rae</a>. If you find it useful please consider donating some small change to my beer fund because beer is very seldom free. Thanks!</p>
|
256 |
|
257 |
<p style="padding-bottom:2em;" class="resizeimage-button-wrapper">
|
258 |
-
<a class="resizeimage-button" href="https://www.paypal.
|
259 |
</p>
|
260 |
</div>
|
261 |
|
24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
25 |
*/
|
26 |
|
27 |
+
$PLUGIN_VERSION = '1.8.2';
|
28 |
$DEBUG_LOGGER = false;
|
29 |
|
30 |
|
120 |
|
121 |
if(isset($_POST['jr_options_update'])) {
|
122 |
|
123 |
+
$resizing_enabled = ($_POST['yesno'] == 'yes' ? 'yes' : 'no');
|
124 |
+
$force_jpeg_recompression = ($_POST['recompress_yesno'] == 'yes' ? 'yes' : 'no');
|
125 |
|
126 |
+
$max_width = intval($_POST['maxwidth']);
|
127 |
+
$max_height = intval($_POST['maxheight']);
|
128 |
+
$compression_level = intval($_POST['quality']);
|
129 |
|
130 |
+
$convert_png_to_jpg = (isset($_POST['convertpng']) && $_POST['convertpng'] == 'yes' ? 'yes' : 'no');
|
131 |
+
$convert_gif_to_jpg = (isset($_POST['convertgif']) && $_POST['convertgif'] == 'yes' ? 'yes' : 'no');
|
132 |
+
$convert_bmp_to_jpg = (isset($_POST['convertbmp']) && $_POST['convertbmp'] == 'yes' ? 'yes' : 'no');
|
133 |
|
134 |
|
135 |
// If input is not an integer, use previous setting
|
255 |
<p>This plugin was written for free (as in free beer) by me, <a href="http://philr.ae" target="_blank">Phil Rae</a>. If you find it useful please consider donating some small change to my beer fund because beer is very seldom free. Thanks!</p>
|
256 |
|
257 |
<p style="padding-bottom:2em;" class="resizeimage-button-wrapper">
|
258 |
+
<a class="resizeimage-button" href="https://www.paypal.me/resizeImage" target="_blank">Donate cash</a>
|
259 |
</p>
|
260 |
</div>
|
261 |
|