Version Description
- Bug Fix: There was a minor bug in how thumbnails for image attachments were being generated. It has been addressed.
Download this release
Release Info
Developer | dan.rossiter |
Plugin | Document Gallery |
Version | 4.1.8 |
Comparing to | |
See all releases |
Code changes from version 4.1.7 to 4.1.8
- CHANGELOG.md +3 -0
- README.txt +6 -3
- document-gallery.php +2 -2
- inc/thumbers/class-image-thumber.php +3 -8
CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
# Changelog
|
2 |
|
|
|
|
|
|
|
3 |
## 4.1.7
|
4 |
* **Bug Fix:** There was a minor issue on some admin pages that has been resolved.
|
5 |
|
1 |
# Changelog
|
2 |
|
3 |
+
## 4.1.8
|
4 |
+
* **Bug Fix:** There was a minor bug in how thumbnails for image attachments were being generated. It has been addressed.
|
5 |
+
|
6 |
## 4.1.7
|
7 |
* **Bug Fix:** There was a minor issue on some admin pages that has been resolved.
|
8 |
|
README.txt
CHANGED
@@ -4,9 +4,9 @@ Tags: attachments, library, thumbnail, documents, gallery, word, pdf
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 4.1.
|
8 |
-
License:
|
9 |
-
License URI: http://www.gnu.org/licenses/gpl-
|
10 |
|
11 |
This plugin generates thumbnails for documents and displays them in a
|
12 |
gallery-like format for easy sharing.
|
@@ -422,6 +422,9 @@ To see a list of features planned for the future as well as to propose your own
|
|
422 |
ideas for future Document Gallery development, take a look at our
|
423 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
424 |
|
|
|
|
|
|
|
425 |
= 4.1.7 =
|
426 |
* **Bug Fix:** There was a minor issue on some admin pages that has been resolved.
|
427 |
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 4.1.8
|
8 |
+
License: GPLv3
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
This plugin generates thumbnails for documents and displays them in a
|
12 |
gallery-like format for easy sharing.
|
422 |
ideas for future Document Gallery development, take a look at our
|
423 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
424 |
|
425 |
+
= 4.1.8 =
|
426 |
+
* **Bug Fix:** There was a minor bug in how thumbnails for image attachments were being generated. It has been addressed.
|
427 |
+
|
428 |
= 4.1.7 =
|
429 |
* **Bug Fix:** There was a minor issue on some admin pages that has been resolved.
|
430 |
|
document-gallery.php
CHANGED
@@ -5,14 +5,14 @@ defined( 'WPINC' ) OR exit;
|
|
5 |
Plugin Name: Document Gallery
|
6 |
Plugin URI: http://wordpress.org/extend/plugins/document-gallery/
|
7 |
Description: Display non-images (and images) in gallery format on a page or post with the [dg] shortcode.
|
8 |
-
Version: 4.1.
|
9 |
Author: Dan Rossiter
|
10 |
Author URI: http://danrossiter.org/
|
11 |
License: GPLv3
|
12 |
Text Domain: document-gallery
|
13 |
*/
|
14 |
|
15 |
-
define( 'DG_VERSION', '4.1.
|
16 |
|
17 |
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
18 |
add_action( 'admin_notices', 'dg_php_lt_three' );
|
5 |
Plugin Name: Document Gallery
|
6 |
Plugin URI: http://wordpress.org/extend/plugins/document-gallery/
|
7 |
Description: Display non-images (and images) in gallery format on a page or post with the [dg] shortcode.
|
8 |
+
Version: 4.1.8
|
9 |
Author: Dan Rossiter
|
10 |
Author URI: http://danrossiter.org/
|
11 |
License: GPLv3
|
12 |
Text Domain: document-gallery
|
13 |
*/
|
14 |
|
15 |
+
define( 'DG_VERSION', '4.1.8' );
|
16 |
|
17 |
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
18 |
add_action( 'admin_notices', 'dg_php_lt_three' );
|
inc/thumbers/class-image-thumber.php
CHANGED
@@ -17,14 +17,9 @@ class DG_ImageThumber extends DG_AbstractThumber {
|
|
17 |
* @return bool|string False on failure, URL to thumb on success.
|
18 |
*/
|
19 |
public function getThumbnail( $ID, $pg = 1 ) {
|
20 |
-
$
|
21 |
-
$
|
22 |
-
|
23 |
-
if ( $icon = image_downsize( $ID, array( $options['width'], $options['height'] ) ) ) {
|
24 |
-
$ret = $icon[0];
|
25 |
-
}
|
26 |
-
|
27 |
-
return $ret;
|
28 |
}
|
29 |
|
30 |
/**
|
17 |
* @return bool|string False on failure, URL to thumb on success.
|
18 |
*/
|
19 |
public function getThumbnail( $ID, $pg = 1 ) {
|
20 |
+
$img = get_attached_file( $ID );
|
21 |
+
$tmp = DG_Util::getTempFile( self::getExt( $img ) );
|
22 |
+
return @link( $img, $tmp ) ? $tmp : false;
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|