Skip to content

Commit

Permalink
fix backend screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Volkmar Kantor committed May 31, 2023
1 parent af43b0f commit 2d1f457
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crop-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
* Author: Volkmar Kantor
* Author URI: https://www.totalmedial.de
* Version: 1.7.0
* Version: 1.7.1
* Description: The easy way to adjust your cropped image sizes.
*
*
Expand All @@ -28,7 +28,7 @@
*/


define('CROP_THUMBNAILS_VERSION','1.7.0');
define('CROP_THUMBNAILS_VERSION','1.7.1');

include_once __DIR__.'/functions/enqueuejsmodule.php';
include_once __DIR__.'/functions/helper.php';
Expand Down
3 changes: 0 additions & 3 deletions functions/backendpreparer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ protected static function showCropButtonOnThisAdminPage() {
* adds the links into post-types and the media-library
*/
function addLinksToAdmin() {



?>
<script type="text/javascript">
jQuery(document).ready(function($) {
Expand Down
2 changes: 1 addition & 1 deletion functions/settingsscreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct() {
public function optionsPageStyle() {
if(!empty($_REQUEST['page']) && $_REQUEST['page']==='page-cpt') {
wp_enqueue_style('crop-thumbnails-options-style', plugins_url('app/main.css', __DIR__), [], CROP_THUMBNAILS_VERSION);
wp_enqueue_script('crop-thumbnails-options-js', plugins_url('app/main.js', __DIR__ ), [], CROP_THUMBNAILS_VERSION);
wp_enqueue_script('crop-thumbnails-options-js', plugins_url('app/main.js', __DIR__ ), ['wp-api'], CROP_THUMBNAILS_VERSION);
}
}

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: post-thumbnails, images, media library
Requires at least: 5.0
Tested up to: 6.2.2
Requires PHP: 7.4.0
Stable tag: 1.7.0
Stable tag: 1.7.1
License: GPL v3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -124,6 +124,9 @@ If you fork and planning to publish the forked plugin, please contact me.
5. Quicktest on settings-page, to check if your system is correct setup.

== Changelog ==
= 1.7.1 =
* fix settings screen not loading

= 1.7.0 =
* refactored backend settings
* Typo error at filter corrected (crop_thumbnails_activat_on_adminpages -> crop_thumbnails_activate_on_adminpages) for compatibility purpose the old name is still working
Expand Down

0 comments on commit 2d1f457

Please sign in to comment.