Skip to content

Commit b685a67

Browse files
committed
Folder setting can't be saved from the settings page #639
1 parent 251aa6c commit b685a67

File tree

6 files changed

+17
-4
lines changed

6 files changed

+17
-4
lines changed

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
== Changelog ==
2+
= 3.2.2 =
3+
* FIX - Folder setting can't be saved from the settings page [#639](https://github.com/udx/wp-stateless/issues/639).
4+
15
== Changelog ==
26
= 3.2.1 =
37
* FIX - Updated requirments.

changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### 3.2.2
2+
3+
- FIX - Folder setting can't be saved from the settings page [#639](https://github.com/udx/wp-stateless/issues/639).
4+
15
#### 3.2.1
26

37
- FIX - Updated requirments.

lib/classes/class-settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,9 @@ public function save_media_settings(){
522522
/**
523523
* Sanitize POST data
524524
*/
525-
$value = sanitize_text_field($value);
525+
if (!is_array($value)) {
526+
$value = sanitize_text_field($value);
527+
}
526528
/**
527529
* root_dir settings
528530
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "wp-stateless",
33
"title": "WP-Stateless",
44
"description": "wpCloud Stateless Media for GCE",
5-
"version": "3.2.1",
5+
"version": "3.2.2",
66
"homepage": "https://udx.io",
77
"author": {
88
"name": "UDX",

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ License: GPLv2 or later
66
Requires PHP: 7.2
77
Requires at least: 5.0
88
Tested up to: 5.9.3
9-
Stable tag: 3.2.1
9+
Stable tag: 3.2.2
1010

1111
Upload and serve your WordPress media files from Google Cloud Storage.
1212

@@ -110,6 +110,9 @@ Before upgrading to WP-Stateless 3.2.0, please, make sure you use PHP 7.2 or abo
110110
Before upgrading to WP-Stateless 3.0, please, make sure you tested it on your development environment.
111111

112112
== Changelog ==
113+
= 3.2.2 =
114+
* FIX - Folder setting can't be saved from the settings page [#639](https://github.com/udx/wp-stateless/issues/639).
115+
113116
= 3.2.1 =
114117
* FIX - Updated requirments.
115118
* FIX - WP-Stateless 3.2.0 doesn’t upload docs, only images [#638](https://github.com/udx/wp-stateless/issues/638).

wp-stateless-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://udx.io
55
* Description: Upload and serve your WordPress media files from Google Cloud Storage.
66
* Author: UDX
7-
* Version: 3.2.1
7+
* Version: 3.2.2
88
* Text Domain: stateless-media
99
* Author URI: https://www.udx.io
1010
*

0 commit comments

Comments
 (0)