Version Description
- Bug Fix: There was a bug in validating user secrets for Thumber.co that has now been addressed.
Download this release
Release Info
Developer | dan.rossiter |
Plugin | Document Gallery |
Version | 4.2.1 |
Comparing to | |
See all releases |
Code changes from version 4.2 to 4.2.1
- CHANGELOG.md +11 -1
- README.txt +5 -2
- admin/tabs/thumber-co-tab.php +1 -1
- document-gallery.php +2 -2
CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
# Changelog
|
2 |
|
3 |
-
## 4.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
* **Bug Fix:** The handling of saving [Thumber.co](https://thumber.co) subscriptions was broken for some use cases.
|
5 |
The logic has been updated to work correctly in all cases.
|
6 |
|
1 |
# Changelog
|
2 |
|
3 |
+
## 4.2.1
|
4 |
+
* **Bug Fix:** There was a bug in validating user secrets for [Thumber.co](https://thumber.co) that has now been addressed.
|
5 |
+
|
6 |
+
## 4.2
|
7 |
+
* **Enhancement:** Adding support for `tax_name`_include_children attribute, as requested by
|
8 |
+
[John](https://wordpress.org/support/topic/add-shortcode-attribute-for-include_children). Thanks for the suggestion!
|
9 |
+
* **Enhancement:** [Thumber.co](https://thumber.co) authentication secret is no longer output in the options
|
10 |
+
dump on the admin settings tab, removing the possibility of this information being inadvertently printed in the
|
11 |
+
support forum.
|
12 |
+
|
13 |
+
## 4.1.14
|
14 |
* **Bug Fix:** The handling of saving [Thumber.co](https://thumber.co) subscriptions was broken for some use cases.
|
15 |
The logic has been updated to work correctly in all cases.
|
16 |
|
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dan.rossiter, demur
|
|
3 |
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.
|
7 |
-
Stable tag: 4.2
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -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.2 =
|
426 |
* **Enhancement:** Adding support for `tax_name`_include_children attribute, as requested by
|
427 |
[John](https://wordpress.org/support/topic/add-shortcode-attribute-for-include_children). Thanks for the suggestion!
|
3 |
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.5
|
7 |
+
Stable tag: 4.2.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
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.2.1 =
|
426 |
+
* **Bug Fix:** There was a bug in validating user secrets for [Thumber.co](https://thumber.co) that has now been addressed.
|
427 |
+
|
428 |
= 4.2 =
|
429 |
* **Enhancement:** Adding support for `tax_name`_include_children attribute, as requested by
|
430 |
[John](https://wordpress.org/support/topic/add-shortcode-attribute-for-include_children). Thanks for the suggestion!
|
admin/tabs/thumber-co-tab.php
CHANGED
@@ -63,7 +63,7 @@ function dg_validate_settings( $values ) {
|
|
63 |
|
64 |
// handle setting the user secret
|
65 |
if ( isset( $values['secret'] ) && 0 !== strcmp( $values['secret'], $ret['thumber-co']['secret'] ) ) {
|
66 |
-
static $secret_regex = '/^[-
|
67 |
if ( '' === $values['secret'] || preg_match( $secret_regex, $values['secret'] ) ) {
|
68 |
$ret['thumber-co']['secret'] = ( '' !== $values['secret'] ) ? $values['secret'] : null;
|
69 |
$has_changed = true;
|
63 |
|
64 |
// handle setting the user secret
|
65 |
if ( isset( $values['secret'] ) && 0 !== strcmp( $values['secret'], $ret['thumber-co']['secret'] ) ) {
|
66 |
+
static $secret_regex = '/^[-_A-Z\d]+$/i';
|
67 |
if ( '' === $values['secret'] || preg_match( $secret_regex, $values['secret'] ) ) {
|
68 |
$ret['thumber-co']['secret'] = ( '' !== $values['secret'] ) ? $values['secret'] : null;
|
69 |
$has_changed = true;
|
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.2
|
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.2' );
|
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.2.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.2.1' );
|
16 |
|
17 |
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
18 |
add_action( 'admin_notices', 'dg_php_lt_three' );
|