Version Description
-
Bug Fix: The
images
attribute was not being parsed correctly. Thanks to kalico for pointing this out!
Download this release
Release Info
Developer | dan.rossiter |
Plugin | Document Gallery |
Version | 3.5.3 |
Comparing to | |
See all releases |
Code changes from version 3.5.2 to 3.5.3
- README.txt +5 -1
- document-gallery.php +2 -2
- inc/class-gallery.php +8 -4
README.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: attachments, thumbnail, documents, gallery, MS office, 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.3
|
7 |
-
Stable tag: 3.5.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -438,6 +438,10 @@ To see a list of features planned for the future as well as to propose your own
|
|
438 |
ideas for future Document Gallery development, take a look at our
|
439 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
440 |
|
|
|
|
|
|
|
|
|
441 |
= 3.5.2 =
|
442 |
* **Bug Fix:** There was an issue with the Media Manager integration preventing using the Document Gallery creation
|
443 |
within the "Add Media" dialog.
|
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.3
|
7 |
+
Stable tag: 3.5.3
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
438 |
ideas for future Document Gallery development, take a look at our
|
439 |
[issue tracker](https://github.com/thenadz/document-gallery/issues).
|
440 |
|
441 |
+
= 3.5.3 =
|
442 |
+
* **Bug Fix:** The `images` attribute was not being parsed correctly. Thanks to
|
443 |
+
[kalico](https://wordpress.org/support/profile/kalico) for pointing this out!
|
444 |
+
|
445 |
= 3.5.2 =
|
446 |
* **Bug Fix:** There was an issue with the Media Manager integration preventing using the Document Gallery creation
|
447 |
within the "Add Media" dialog.
|
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: 3.5.
|
9 |
Author: Dan Rossiter
|
10 |
Author URI: http://danrossiter.org/
|
11 |
License: GPLv2
|
12 |
Text Domain: document-gallery
|
13 |
*/
|
14 |
|
15 |
-
define( 'DG_VERSION', '3.5.
|
16 |
|
17 |
// define helper paths & URLs
|
18 |
define( 'DG_BASENAME', plugin_basename( __FILE__ ) );
|
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: 3.5.3
|
9 |
Author: Dan Rossiter
|
10 |
Author URI: http://danrossiter.org/
|
11 |
License: GPLv2
|
12 |
Text Domain: document-gallery
|
13 |
*/
|
14 |
|
15 |
+
define( 'DG_VERSION', '3.5.3' );
|
16 |
|
17 |
// define helper paths & URLs
|
18 |
define( 'DG_BASENAME', plugin_basename( __FILE__ ) );
|
inc/class-gallery.php
CHANGED
@@ -126,11 +126,15 @@ class DG_Gallery {
|
|
126 |
}
|
127 |
|
128 |
if ( ! empty( $atts['images'] ) ) {
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
|
|
133 |
}
|
|
|
|
|
134 |
}
|
135 |
|
136 |
/**
|
126 |
}
|
127 |
|
128 |
if ( ! empty( $atts['images'] ) ) {
|
129 |
+
if ( DG_Util::toBool( $atts['images'], false ) ) {
|
130 |
+
$options = self::getOptions();
|
131 |
+
$mimes = trim( isset( $atts['mime_types'] ) ? $atts['mime_types'] : $options['mime_types'] );
|
132 |
+
if ( ! preg_match( '/[,^]image[,$]/', $mimes ) ) {
|
133 |
+
$atts['mime_types'] = empty( $mimes ) ? 'image' : ( $mimes . ',image' );
|
134 |
+
}
|
135 |
}
|
136 |
+
|
137 |
+
unset( $atts['images'] );
|
138 |
}
|
139 |
|
140 |
/**
|