Skip to content

Commit

Permalink
Prepare for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
Volkmar Kantor committed Aug 28, 2016
1 parent 4cea7c6 commit a24ffea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crop-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: http://wordpress.org/extend/plugins/crop-thumbnails/
* Author: Volkmar Kantor
* Author URI: http://www.totalmedial.de
* Version: 0.10.9
* Version: 0.10.10
* Description: Crop your thumbnails, the easy way.
* Text Domain: crop-thumbnails
*
Expand All @@ -27,7 +27,7 @@

//cpt - stands for crop-post-thumbnail
define('CROP_THUMBS_LANG','cpt_lang');
define('CROP_THUMBS_VERSION','0.10.9');
define('CROP_THUMBS_VERSION','0.10.10');

function cpt_plugin_init() {
load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
Expand Down
3 changes: 1 addition & 2 deletions functions/backendpreparer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ function handleFeaturedImageBox() {
* add link to featured image box
*/
var baseElem = $('#postimagediv');
var featuredImageLinkButton = '';

if(!baseElem.length) {
return;
}

var featuredImageLinkButton = '';
featuredImageLinkButton+= '<p class="cropFeaturedImageWrap hidden">';
featuredImageLinkButton+= '<a class="button cropThumbnailsLink" href="#" data-cropthumbnail=\'{"image_id":'+ parseInt(wp.media.featuredImage.get()) +',"viewmode":"single"}\' title="<?php esc_attr_e('Crop Featured Image',CROP_THUMBS_LANG) ?>">';
featuredImageLinkButton+= '<span class="wp-media-buttons-icon"></span> <?php esc_html_e('Crop Featured Image',CROP_THUMBS_LANG); ?>';
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,12 @@ If you fork and planning to publish the forked plugin, please contact me.
5. Choose what image-sizes should be hidden (for what post-types), for better usability.
6. Quicktest on settings-page, to check if your system is correct setup.

== Changelog ==
== Changelog ==
= 0.10.10 =
* bugfix: Checks if the current page have a featured image box in the first place

= 0.10.9 =
* bugfix click on the button in the featured image box (WP 4.6 and above)
* bugfix: click on the button in the featured image box (WP 4.6 and above)
* button in featured image box is no longer visible if no image is choosed
* minor style improvements

Expand Down

1 comment on commit a24ffea

@khaiknievel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers :)

Please sign in to comment.