Skip to content

Commit

Permalink
Merge pull request #24 from ZNick1982/v2.5.1
Browse files Browse the repository at this point in the history
initial option value fix
  • Loading branch information
ZNick1982 committed Dec 25, 2017
2 parents 0985131 + 6dfa6b3 commit 101fb54
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

### 2.5.1 ([Download](http://downloads.wordpress.org/plugin/uploadcare.2.5.1.zip))
- Fixed initialization warnings in utils.php module

### 2.5.0 ([Download](http://downloads.wordpress.org/plugin/uploadcare.2.5.0.zip))
- Test up to Wordpress 4.9.1
Expand Down
8 changes: 7 additions & 1 deletion inc/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ function _uploadcare_get_js_cfg() {
$tabs = implode(' ', $tab_options);
}

$effects = get_option('uploadcare_tab_effects');
$effects = get_option('uploadcare_tab_effects', array(
'crop',
'rotate',
'sharp',
'enhance',
'grayscale',
));
if(count($effects) == 1 && in_array('none', $effects)) {
$previewStep = "false";
$effects = array();
Expand Down
13 changes: 8 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: grayhound1, dmitry-mukhin
Tags: media upload, file handling, cdn, storage, facebook, dropbox, instagram, google drive, vk, evernote, box, images, flickr
Requires at least: 3.5+
Tested up to: 4.9.1
Stable tag: 2.5.0
Stable tag: 2.5.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://uploadcare.com/pricing/
Expand Down Expand Up @@ -115,11 +115,14 @@ Access all files in your Uploadcare account via Media Library.

== Changelog ==

= 2.5.1 =
* Fixed initialization warnings in utils.php module

= 2.5.0 =
- Test up to Wordpress 4.9.1
- Uploadcare widget updated to version 3.x
- Added In-browser image editing and filters
- Added storing Uploadcare images localy on your WordPress host
* Test up to Wordpress 4.9.1
* Uploadcare widget updated to version 3.x
* Added In-browser image editing and filters
* Added storing Uploadcare images localy on your WordPress host

= 2.4.1 =
* Minor bug fix for usage jQuery.
Expand Down
4 changes: 2 additions & 2 deletions uploadcare.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Uploadcare
Plugin URI: http://github.com/uploadcare/uploadcare-wordpress
Description: Uploadcare let's you upload anything from anywhere (Instagram, Facebook, Dropbox, etc.)
Version: 2.5.0
Version: 2.5.1
Author: Uploadcare
Author URI: https://uploadcare.com/
License: GPL2
Expand All @@ -14,7 +14,7 @@
exit("Uploadcare plugin requires PHP version <b>5.3+</b>, you've got <b>" . PHP_VERSION . "</b>");
}

define('UPLOADCARE_PLUGIN_VERSION', '2.5.0');
define('UPLOADCARE_PLUGIN_VERSION', '2.5.1');
define('UPLOADCARE_WIDGET_VERSION', '3.x');
define('UPLOADCARE_TAB_EFFECTS_VERSION', '1.x');

Expand Down

0 comments on commit 101fb54

Please sign in to comment.