Version Description
Release date: 10th April 2019
- Improve security to the settings form by using nonce
Download this release
Release Info
| Developer | ShortPixel |
| Plugin | |
| Version | 1.8.6 |
| Comparing to | |
| See all releases | |
Code changes from version 1.8.5 to 1.8.6
- readme.txt +8 -2
- resize-image-after-upload.php +9 -3
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: ShortPixel
|
|
| 3 |
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:
|
| 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.5 =
|
| 47 |
|
| 48 |
Release date: 3rd August 2018
|
| 3 |
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: 5.1
|
| 7 |
+
Stable tag: 1.8.6
|
| 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.6 =
|
| 47 |
+
|
| 48 |
+
Release date: 10th April 2019
|
| 49 |
+
|
| 50 |
+
* Improve security to the settings form by using nonce
|
| 51 |
+
|
| 52 |
= 1.8.5 =
|
| 53 |
|
| 54 |
Release date: 3rd August 2018
|
resize-image-after-upload.php
CHANGED
|
@@ -4,7 +4,7 @@ Plugin Name: Resize Image After Upload
|
|
| 4 |
Plugin URI: https://wordpress.org/plugins/resize-image-after-upload/
|
| 5 |
Description: Automatically resize uploaded images to within specified maximum width and height. Also has option to force recompression of JPEGs. Configuration options found under <a href="options-general.php?page=resize-after-upload">Settings > Resize Image Upload</a>
|
| 6 |
Author: ShortPixel
|
| 7 |
-
Version: 1.8.
|
| 8 |
Author URI: https://shortpixel.com
|
| 9 |
|
| 10 |
Copyright (C) 2017 ShortPixel
|
|
@@ -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,6 +120,11 @@ function jr_uploadresize_options(){
|
|
| 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 |
|
|
@@ -380,7 +385,8 @@ function jr_uploadresize_options(){
|
|
| 380 |
|
| 381 |
<p class="submit" style="margin-top:10px;border-top:1px solid #eee;padding-top:20px;">
|
| 382 |
<input type="hidden" id="convert-bmp" name="convertbmp" value="no" />
|
| 383 |
-
|
|
|
|
| 384 |
<input id="submit" name="jr_options_update" class="button button-primary" type="submit" value="Update Options">
|
| 385 |
</p>
|
| 386 |
</form>
|
| 4 |
Plugin URI: https://wordpress.org/plugins/resize-image-after-upload/
|
| 5 |
Description: Automatically resize uploaded images to within specified maximum width and height. Also has option to force recompression of JPEGs. Configuration options found under <a href="options-general.php?page=resize-after-upload">Settings > Resize Image Upload</a>
|
| 6 |
Author: ShortPixel
|
| 7 |
+
Version: 1.8.6
|
| 8 |
Author URI: https://shortpixel.com
|
| 9 |
|
| 10 |
Copyright (C) 2017 ShortPixel
|
| 24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
| 25 |
*/
|
| 26 |
|
| 27 |
+
$PLUGIN_VERSION = '1.8.6';
|
| 28 |
$DEBUG_LOGGER = false;
|
| 29 |
|
| 30 |
|
| 120 |
|
| 121 |
if(isset($_POST['jr_options_update'])) {
|
| 122 |
|
| 123 |
+
if(!(current_user_can('manage_options') &&
|
| 124 |
+
wp_verify_nonce($_POST['_wpnonce'], 'jr-options-update'))) {
|
| 125 |
+
wp_die("Not authorized");
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
$resizing_enabled = ($_POST['yesno'] == 'yes' ? 'yes' : 'no');
|
| 129 |
$force_jpeg_recompression = ($_POST['recompress_yesno'] == 'yes' ? 'yes' : 'no');
|
| 130 |
|
| 385 |
|
| 386 |
<p class="submit" style="margin-top:10px;border-top:1px solid #eee;padding-top:20px;">
|
| 387 |
<input type="hidden" id="convert-bmp" name="convertbmp" value="no" />
|
| 388 |
+
<input type="hidden" name="action" value="update" />
|
| 389 |
+
<?php wp_nonce_field('jr-options-update'); ?>
|
| 390 |
<input id="submit" name="jr_options_update" class="button button-primary" type="submit" value="Update Options">
|
| 391 |
</p>
|
| 392 |
</form>
|
