Version Description
- 2017-10-10
Download this release
Release Info
Developer | WPReady |
Plugin | NextCellent Gallery – NextGEN Legacy |
Version | 1.9.34 |
Comparing to | |
See all releases |
Code changes from version 1.9.33 to 1.9.34
- admin/manage/class-ngg-image-manager.php +1 -1
- admin/tinymce/editor_plugin.js +1 -1
- admin/tinymce/window.php +6 -3
- lib/ngg-db.php +6 -1
- nggallery.php +2 -2
- readme.txt +8 -1
admin/manage/class-ngg-image-manager.php
CHANGED
@@ -329,7 +329,7 @@ class NGG_Image_Manager extends NGG_Abstract_Image_Manager {
|
|
329 |
@unlink($image->thumbPath);
|
330 |
@unlink($image->imagePath . '_backup' );
|
331 |
}
|
332 |
-
do_action('ngg_delete_picture', $pid);
|
333 |
$result = nggdb::delete_image ( $pid );
|
334 |
} else {
|
335 |
$result = false;
|
329 |
@unlink($image->thumbPath);
|
330 |
@unlink($image->imagePath . '_backup' );
|
331 |
}
|
332 |
+
//do_action('ngg_delete_picture', $pid); 1.9.34: action embedded inside delete_image
|
333 |
$result = nggdb::delete_image ( $pid );
|
334 |
} else {
|
335 |
$result = false;
|
admin/tinymce/editor_plugin.js
CHANGED
@@ -66,7 +66,7 @@
|
|
66 |
author : '',
|
67 |
authorurl : '',
|
68 |
infourl : '',
|
69 |
-
version : "1.9.
|
70 |
};
|
71 |
}
|
72 |
});
|
66 |
author : '',
|
67 |
authorurl : '',
|
68 |
infourl : '',
|
69 |
+
version : "1.9.33"
|
70 |
};
|
71 |
}
|
72 |
});
|
admin/tinymce/window.php
CHANGED
@@ -22,10 +22,13 @@ wp_enqueue_script( 'ngg-autocomplete', NGGALLERY_URLPATH . 'admin/js/ngg.autocom
|
|
22 |
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
|
23 |
</script>
|
24 |
<?php wp_print_scripts(); ?>
|
25 |
-
|
26 |
-
<script language="javascript" type="text/javascript" src="<?php echo
|
|
|
|
|
27 |
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
28 |
-
|
|
|
29 |
<?php wp_print_styles(); ?>
|
30 |
<style>
|
31 |
.nggwrap {
|
22 |
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
|
23 |
</script>
|
24 |
<?php wp_print_scripts(); ?>
|
25 |
+
<!--<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>-->
|
26 |
+
<script language="javascript" type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>admin/tinymce/tiny_mce_popup.js"></script>
|
27 |
+
<!--<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>-->
|
28 |
+
<script language="javascript" type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>admin/tinymce/utils/mctabs.js"></script>
|
29 |
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
30 |
+
|
31 |
+
<!--<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tinymce.min.js"></script>-->
|
32 |
<?php wp_print_styles(); ?>
|
33 |
<style>
|
34 |
.nggwrap {
|
lib/ngg-db.php
CHANGED
@@ -744,6 +744,11 @@ class nggdb {
|
|
744 |
static function delete_image( $id ) {
|
745 |
global $wpdb;
|
746 |
|
|
|
|
|
|
|
|
|
|
|
747 |
// Delete the image
|
748 |
$result = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->nggpictures WHERE pid = %d", $id) );
|
749 |
|
@@ -752,7 +757,7 @@ class nggdb {
|
|
752 |
|
753 |
// Remove from cache
|
754 |
wp_cache_delete( $id, 'ngg_image');
|
755 |
-
|
756 |
return $result;
|
757 |
}
|
758 |
|
744 |
static function delete_image( $id ) {
|
745 |
global $wpdb;
|
746 |
|
747 |
+
//Example: add_filter( 'ngg_pre_delete_image', '__return_true' ) will prevent to delete an image just addint a filter
|
748 |
+
//Use the filter for specific cases when you desire to control wether delete or not an image based on external conditions
|
749 |
+
if (apply_filters('ngg_pre_delete_image',false,$id)) {
|
750 |
+
return;
|
751 |
+
}
|
752 |
// Delete the image
|
753 |
$result = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->nggpictures WHERE pid = %d", $id) );
|
754 |
|
757 |
|
758 |
// Remove from cache
|
759 |
wp_cache_delete( $id, 'ngg_image');
|
760 |
+
do_action('ngg_deleted_image', $id);
|
761 |
return $result;
|
762 |
}
|
763 |
|
nggallery.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.wpgetready.com/nextcellent-gallery
|
|
5 |
Description: A Photo Gallery for WordPress providing NextGEN legacy compatibility from version 1.9.13
|
6 |
Author: WPGReady, Niknetniko based on Alex Rabe & PhotoCrati work.
|
7 |
Author URI: http://www.wpgetready.com
|
8 |
-
Version: 1.9.
|
9 |
|
10 |
Copyright (c) 2007-2011 by Alex Rabe & NextGEN DEV-Team
|
11 |
Copyright (c) 2012 Photocrati Media
|
@@ -53,7 +53,7 @@ if (!class_exists('nggLoader')) {
|
|
53 |
*/
|
54 |
class nggLoader {
|
55 |
|
56 |
-
var $version = '1.9.
|
57 |
var $dbversion = '1.8.3';
|
58 |
var $minimum_WP = '4.0';
|
59 |
var $options = '';
|
5 |
Description: A Photo Gallery for WordPress providing NextGEN legacy compatibility from version 1.9.13
|
6 |
Author: WPGReady, Niknetniko based on Alex Rabe & PhotoCrati work.
|
7 |
Author URI: http://www.wpgetready.com
|
8 |
+
Version: 1.9.34
|
9 |
|
10 |
Copyright (c) 2007-2011 by Alex Rabe & NextGEN DEV-Team
|
11 |
Copyright (c) 2012 Photocrati Media
|
53 |
*/
|
54 |
class nggLoader {
|
55 |
|
56 |
+
var $version = '1.9.34';
|
57 |
var $dbversion = '1.8.3';
|
58 |
var $minimum_WP = '4.0';
|
59 |
var $options = '';
|
readme.txt
CHANGED
@@ -8,6 +8,13 @@ License: GPLv2
|
|
8 |
|
9 |
== Description ==
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
= 1.9.33 - 2017-09-23 = Fixes for 1.9.32
|
12 |
|
13 |
What's in it for you?
|
@@ -17,7 +24,7 @@ What's in it for you?
|
|
17 |
* fix: removed (finally) dependency with AJAX and wp-load.php. Rotation, and thumbnail should work fine.
|
18 |
* fix: issues preventing to display correctly.
|
19 |
* fix: Class constructor warning on PHP 7.1 and aboved
|
20 |
-
*
|
21 |
* deprecated: Nextcellent is plupload instead is using swfUpload. For legacy code reasons only swfUpload is mentined but not used.
|
22 |
* improve: core Ajax call simplified
|
23 |
|
8 |
|
9 |
== Description ==
|
10 |
|
11 |
+
= 1.9.34 - 2017-10-10 = Fixes for 1.9.33
|
12 |
+
|
13 |
+
What's in it for you?
|
14 |
+
* fix: patch for WP 4.8.2 issue window modal empty. Tested and working, however it could prevent working in other WP versions. Users area advised
|
15 |
+
to update WP in order getting Nextcellent operating.
|
16 |
+
* improved: added filter ngg_pre_delete_image and action ngg_deleted_image to provide some degree of control when deleting a picture.
|
17 |
+
|
18 |
= 1.9.33 - 2017-09-23 = Fixes for 1.9.32
|
19 |
|
20 |
What's in it for you?
|
24 |
* fix: removed (finally) dependency with AJAX and wp-load.php. Rotation, and thumbnail should work fine.
|
25 |
* fix: issues preventing to display correctly.
|
26 |
* fix: Class constructor warning on PHP 7.1 and aboved
|
27 |
+
* deprecated: imagerotator.swf: older Nextcellent version depend on Flash part, now replaced with html counterpart
|
28 |
* deprecated: Nextcellent is plupload instead is using swfUpload. For legacy code reasons only swfUpload is mentined but not used.
|
29 |
* improve: core Ajax call simplified
|
30 |
|