Document Gallery - Version 2.0.8

Version Description

  • Enhancement: Ghostscript will now handle PS and EPS files if enabled.
  • Bug Fix: There were a couple of issues in how the ids attribute was being handled. Thanks, demur for catching these!
Download this release

Release Info

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

Code changes from version 2.0.7 to 2.0.8

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&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
- Stable tag: 2.0.7
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -298,6 +298,12 @@ Note that the display inherits styling from your active theme.
298
  forum](http://wordpress.org/support/plugin/document-gallery) if you have
299
  ideas)!
300
 
 
 
 
 
 
 
301
  = 2.0.7 =
302
  * **Bug Fix:** `2.0.6` did not fully resolve the bug described below. This should.
303
 
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: 3.9
7
+ Stable tag: 2.0.8
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
298
  forum](http://wordpress.org/support/plugin/document-gallery) if you have
299
  ideas)!
300
 
301
+ = 2.0.8 =
302
+ * **Enhancement:** Ghostscript will now handle PS and EPS files if enabled.
303
+ * **Bug Fix:** There were a couple of issues in how the `ids` attribute was being
304
+ handled. Thanks, [demur](http://wordpress.org/support/profile/demur) for catching
305
+ these!
306
+
307
  = 2.0.7 =
308
  * **Bug Fix:** `2.0.6` did not fully resolve the bug described below. This should.
309
 
admin/class-admin.php CHANGED
@@ -63,7 +63,7 @@ class DG_Admin {
63
  array(__CLASS__, 'renderThumberSection'), 'document_gallery');
64
 
65
  add_settings_section(
66
- 'css', __('Custon CSS', 'document-gallery'),
67
  array(__CLASS__, 'renderCssSection'), 'document_gallery');
68
 
69
  add_settings_section(
63
  array(__CLASS__, 'renderThumberSection'), 'document_gallery');
64
 
65
  add_settings_section(
66
+ 'css', __('Custom CSS', 'document-gallery'),
67
  array(__CLASS__, 'renderCssSection'), 'document_gallery');
68
 
69
  add_settings_section(
document-gallery.php CHANGED
@@ -5,7 +5,7 @@ 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.0.7
9
  Author: Dan Rossiter
10
  Author URI: http://danrossiter.org/
11
  License: GPLv2
@@ -13,7 +13,7 @@ defined('WPINC') OR exit;
13
  */
14
 
15
  // define helper paths & URLs
16
- define('DG_VERSION', '2.0.7');
17
  define('DG_URL', plugin_dir_url(__FILE__));
18
  define('DG_PATH', plugin_dir_path(__FILE__));
19
  define('DG_WPINC_PATH', ABSPATH . WPINC . '/');
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.0.8
9
  Author: Dan Rossiter
10
  Author URI: http://danrossiter.org/
11
  License: GPLv2
13
  */
14
 
15
  // define helper paths & URLs
16
+ define('DG_VERSION', '2.0.8');
17
  define('DG_URL', plugin_dir_url(__FILE__));
18
  define('DG_PATH', plugin_dir_path(__FILE__));
19
  define('DG_WPINC_PATH', ABSPATH . WPINC . '/');
inc/class-gallery.php CHANGED
@@ -488,8 +488,9 @@ class DG_Gallery {
488
  $args = array(
489
  'post_type' => 'attachment',
490
  'post_status' => 'inherit',
491
- 'post_per_page' => -1,
492
- 'post__in' => $this->atts['ids']
 
493
  );
494
 
495
  return count($args['post__in']) ? get_posts($args) : array();
488
  $args = array(
489
  'post_type' => 'attachment',
490
  'post_status' => 'inherit',
491
+ 'numberposts' => -1,
492
+ 'post__in' => $this->atts['ids'],
493
+ 'orderby' => 'post__in'
494
  );
495
 
496
  return count($args['post__in']) ? get_posts($args) : array();
inc/class-thumber.php CHANGED
@@ -243,7 +243,7 @@ class DG_Thumber {
243
  * @return array All extensions supported by Ghostscript.
244
  */
245
  private static function getGhostscriptExts() {
246
- return array('pdf');
247
  }
248
 
249
  /**
243
  * @return array All extensions supported by Ghostscript.
244
  */
245
  private static function getGhostscriptExts() {
246
+ return array('pdf', 'ps', 'eps');
247
  }
248
 
249
  /**
languages/document-gallery-es_ES.mo CHANGED
Binary file
languages/document-gallery-es_ES.po CHANGED
@@ -8,7 +8,7 @@ msgstr ""
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-03-27 21:33-0600\n"
12
  "Last-Translator: Dan Rossiter <dan.rossiters@gmail.com>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Generator: Poedit 1.6.4\n"
@@ -37,7 +37,7 @@ msgid "Thumbnail Generation"
37
  msgstr "Generación de Miniaturas"
38
 
39
  #: admin/class-admin.php:75
40
- msgid "Custon CSS"
41
  msgstr "CSS Personalizado"
42
 
43
  #: admin/class-admin.php:79
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-04-14 18:48-0600\n"
12
  "Last-Translator: Dan Rossiter <dan.rossiters@gmail.com>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Generator: Poedit 1.6.4\n"
37
  msgstr "Generación de Miniaturas"
38
 
39
  #: admin/class-admin.php:75
40
+ msgid "Custom CSS"
41
  msgstr "CSS Personalizado"
42
 
43
  #: admin/class-admin.php:79
languages/document-gallery.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Document Gallery package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Document Gallery 2.0.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/document-gallery\n"
7
- "POT-Creation-Date: 2014-04-01 01:22:00+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -20,7 +20,7 @@ msgstr ""
20
  msgid "Document Gallery Settings"
21
  msgstr ""
22
 
23
- #. #-#-#-#-# plugin.pot (Document Gallery 2.0.3) #-#-#-#-#
24
  #. Plugin Name of the plugin/theme
25
  #: admin/class-admin.php:38
26
  msgid "Document Gallery"
@@ -35,7 +35,7 @@ msgid "Thumbnail Generation"
35
  msgstr ""
36
 
37
  #: admin/class-admin.php:66
38
- msgid "Custon CSS"
39
  msgstr ""
40
 
41
  #: admin/class-admin.php:70
@@ -150,7 +150,7 @@ msgid ""
150
  "NOTE: <code>exec()</code> is not accessible. Ghostscript will not function."
151
  msgstr ""
152
 
153
- #: admin/class-admin.php:386
154
  msgid "Invalid Ghostscript path given: "
155
  msgstr ""
156
 
@@ -204,18 +204,22 @@ msgstr ""
204
  msgid "Ghostscript failed: "
205
  msgstr ""
206
 
207
- #: inc/class-thumber.php:350
208
  msgid "Failed to retrieve thumbnail from Google: "
209
  msgstr ""
210
 
211
- #: inc/class-thumber.php:630
212
  msgid "Failed to get image editor: "
213
  msgstr ""
214
 
215
- #: inc/class-thumber.php:641
216
  msgid "Failed to save image: "
217
  msgstr ""
218
 
 
 
 
 
219
  #. Description of the plugin/theme
220
  msgid ""
221
  "Display non-images (and images) in gallery format on a page or post with the "
2
  # This file is distributed under the same license as the Document Gallery package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Document Gallery 2.0.7\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/document-gallery\n"
7
+ "POT-Creation-Date: 2014-04-14 23:48:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
20
  msgid "Document Gallery Settings"
21
  msgstr ""
22
 
23
+ #. #-#-#-#-# plugin.pot (Document Gallery 2.0.7) #-#-#-#-#
24
  #. Plugin Name of the plugin/theme
25
  #: admin/class-admin.php:38
26
  msgid "Document Gallery"
35
  msgstr ""
36
 
37
  #: admin/class-admin.php:66
38
+ msgid "Custom CSS"
39
  msgstr ""
40
 
41
  #: admin/class-admin.php:70
150
  "NOTE: <code>exec()</code> is not accessible. Ghostscript will not function."
151
  msgstr ""
152
 
153
+ #: admin/class-admin.php:388
154
  msgid "Invalid Ghostscript path given: "
155
  msgstr ""
156
 
204
  msgid "Ghostscript failed: "
205
  msgstr ""
206
 
207
+ #: inc/class-thumber.php:364
208
  msgid "Failed to retrieve thumbnail from Google: "
209
  msgstr ""
210
 
211
+ #: inc/class-thumber.php:644
212
  msgid "Failed to get image editor: "
213
  msgstr ""
214
 
215
+ #: inc/class-thumber.php:655
216
  msgid "Failed to save image: "
217
  msgstr ""
218
 
219
+ #. Plugin URI of the plugin/theme
220
+ msgid "http://wordpress.org/extend/plugins/document-gallery/"
221
+ msgstr ""
222
+
223
  #. Description of the plugin/theme
224
  msgid ""
225
  "Display non-images (and images) in gallery format on a page or post with the "