Document Gallery - Version 2.3.5

Version Description

  • Bug Fix: There was an issue with how custom CSS was being processed that is resolved in this version.
Download this release

Release Info

Developer dan.rossiter
Plugin Icon 128x128 Document Gallery
Version 2.3.5
Comparing to
See all releases

Code changes from version 2.3.4 to 2.3.5

Files changed (3) hide show
  1. README.txt +5 -2
  2. document-gallery.php +8 -8
  3. inc/class-gallery.php +1 -1
README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dan.rossiter, demur
3
  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&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.6
6
- Tested up to: 4.0.1
7
- Stable tag: 2.3.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -416,6 +416,9 @@ To see a list of features planned for the future as well as to propose your own
416
  ideas for future Document Gallery development, take a look at our
417
  [issue tracker](https://github.com/thenadz/document-gallery/issues).
418
 
 
 
 
419
  = 2.3.4 =
420
  * **Bug Fix:** A bug was introduced that broke the `ids` parameter. This is resolved now.
421
 
3
  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&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.6
6
+ Tested up to: 4.1
7
+ Stable tag: 2.3.5
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
416
  ideas for future Document Gallery development, take a look at our
417
  [issue tracker](https://github.com/thenadz/document-gallery/issues).
418
 
419
+ = 2.3.5 =
420
+ * **Bug Fix:** There was an issue with how custom CSS was being processed that is resolved in this version.
421
+
422
  = 2.3.4 =
423
  * **Bug Fix:** A bug was introduced that broke the `ids` parameter. This is resolved now.
424
 
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: 2.3.4
9
  Author: Dan Rossiter
10
  Author URI: http://danrossiter.org/
11
  License: GPLv2
12
  Text Domain: document-gallery
13
  */
14
 
15
- define('DG_VERSION', '2.3.4');
16
 
17
  // define helper paths & URLs
18
  define('DG_BASENAME', plugin_basename(__FILE__));
@@ -257,8 +257,8 @@ class DocumentGallery {
257
  (?sx)
258
  # quotes
259
  (
260
- "(?:[^"\\]++|\\.)*+"
261
- | '(?:[^'\\]++|\\.)*+'
262
  )
263
  |
264
  # comments
@@ -269,8 +269,8 @@ EOS;
269
  (?six)
270
  # quotes
271
  (
272
- "(?:[^"\\]++|\\.)*+"
273
- | '(?:[^'\\]++|\\.)*+'
274
  )
275
  |
276
  # ; before } (and the spaces after it while we're here)
@@ -291,8 +291,8 @@ EOS;
291
  (?!
292
  (?>
293
  [^{}"']++
294
- | "(?:[^"\\]++|\\.)*+"
295
- | '(?:[^'\\]++|\\.)*+'
296
  )*+
297
  {
298
  )
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: 2.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', '2.3.5');
16
 
17
  // define helper paths & URLs
18
  define('DG_BASENAME', plugin_basename(__FILE__));
257
  (?sx)
258
  # quotes
259
  (
260
+ "(?:[^"\\\\]++|\\.)*+"
261
+ | '(?:[^'\\\\]++|\\.)*+'
262
  )
263
  |
264
  # comments
269
  (?six)
270
  # quotes
271
  (
272
+ "(?:[^"\\\\]++|\\.)*+"
273
+ | '(?:[^'\\\\]++|\\.)*+'
274
  )
275
  |
276
  # ; before } (and the spaces after it while we're here)
291
  (?!
292
  (?>
293
  [^{}"']++
294
+ | "(?:[^"\\\\]++|\\.)*+"
295
+ | '(?:[^'\\\\]++|\\.)*+'
296
  )*+
297
  {
298
  )
inc/class-gallery.php CHANGED
@@ -260,7 +260,7 @@ class DG_Gallery {
260
  } else {
261
  $value = trim($value);
262
  $ret = $value ? explode(',', $value) : array();
263
- $bad = array_filter($ret, array(__CLASS__, 'negativeInt'));
264
 
265
  if(!empty($bad)) {
266
  $err = _n('The following ID is invalid: ',
260
  } else {
261
  $value = trim($value);
262
  $ret = $value ? explode(',', $value) : array();
263
+ $bad = array_filter($ids, array(__CLASS__, 'negativeInt'));
264
 
265
  if(!empty($bad)) {
266
  $err = _n('The following ID is invalid: ',