WP Offload S3 Lite - Version 2.5.5

Version Description

= 2.3 = This is a major upgrade that switches to using a custom table for storing data about offloaded Media Library items. Once upgraded you will not be able to downgrade without restoring data from a backup.

= 2.0 = This is a major upgrade that introduces support for DigitalOcean Spaces, renames the plugin to WP Offload Media Lite, and coincidentally upgrades some of its database settings. You may not be able to downgrade to WP Offload S3 Lite 1.x after upgrading to WP Offload Media Lite 2.0+.

= 1.1 = This is a major change, which ensures S3 URLs are no longer saved in post content. Instead, local URLs are filtered on page generation and replaced with the S3 version. If you depend on the S3 URLs being stored in post content you will need to make modifications to support this version.

= 0.6 = This version requires PHP 5.3.3+ and the Amazon Web Services plugin

Download this release

Release Info

Developer deliciousbrains
Plugin Icon 128x128 WP Offload S3 Lite
Version 2.5.5
Comparing to
See all releases

Code changes from version 2.5.3 to 2.5.5

README.md CHANGED
@@ -2,9 +2,9 @@
2
  **Contributors:** bradt, deliciousbrains, ianmjones
3
  **Tags:** uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google cloud storage, gcs, mirror, admin, media, cdn, cloudfront
4
  **Requires at least:** 4.9
5
- **Tested up to:** 5.7
6
  **Requires PHP:** 5.5
7
- **Stable tag:** 2.5.3
8
  **License:** GPLv3
9
 
10
  Copies files to Amazon S3, DigitalOcean Spaces or Google Cloud Storage as they are uploaded to the Media Library. Optionally configure Amazon CloudFront or another CDN for faster delivery.
@@ -89,6 +89,11 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
89
 
90
  ## Changelog ##
91
 
 
 
 
 
 
92
  ### WP Offload Media Lite 2.5.3 - 2021-03-03 ###
93
  * New: Added DigitalOcean region San Francisco 3
94
  * Bug fix: Domain mapping not handled correctly when the local URL includes a port number
2
  **Contributors:** bradt, deliciousbrains, ianmjones
3
  **Tags:** uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google cloud storage, gcs, mirror, admin, media, cdn, cloudfront
4
  **Requires at least:** 4.9
5
+ **Tested up to:** 5.8
6
  **Requires PHP:** 5.5
7
+ **Stable tag:** 2.5.5
8
  **License:** GPLv3
9
 
10
  Copies files to Amazon S3, DigitalOcean Spaces or Google Cloud Storage as they are uploaded to the Media Library. Optionally configure Amazon CloudFront or another CDN for faster delivery.
89
 
90
  ## Changelog ##
91
 
92
+ ### WP Offload Media Lite 2.5.5 - 2021-07-19 ###
93
+ * Bug fix: Signed GCS URLs broken when updating a post
94
+ * Bug fix: Incorrect mime type set on scaled image's bucket object when thumbnail format differs from original file's format
95
+ * Tested: WordPress 5.8
96
+
97
  ### WP Offload Media Lite 2.5.3 - 2021-03-03 ###
98
  * New: Added DigitalOcean region San Francisco 3
99
  * Bug fix: Domain mapping not handled correctly when the local URL includes a port number
classes/amazon-s3-and-cloudfront.php CHANGED
@@ -1516,7 +1516,8 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
1516
  $type = get_post_mime_type( $post_id );
1517
  $allowed_types = $this->get_allowed_mime_types();
1518
 
1519
- // check mime type of file is in allowed provider mime types
 
1520
  if ( ! in_array( $type, $allowed_types ) ) {
1521
  $error_msg = sprintf( __( 'Mime type %s is not allowed', 'amazon-s3-and-cloudfront' ), $type );
1522
 
@@ -1577,7 +1578,7 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
1577
  'Bucket' => $bucket,
1578
  'Key' => $prefix . $file_name,
1579
  'SourceFile' => $file_path,
1580
- 'ContentType' => $type,
1581
  'CacheControl' => 'max-age=31536000',
1582
  'Expires' => date( 'D, d M Y H:i:s O', time() + 31536000 ),
1583
  );
1516
  $type = get_post_mime_type( $post_id );
1517
  $allowed_types = $this->get_allowed_mime_types();
1518
 
1519
+ // Check mime type of file is in allowed provider mime types.
1520
+ // Note: This check is based on the item's original upload format.
1521
  if ( ! in_array( $type, $allowed_types ) ) {
1522
  $error_msg = sprintf( __( 'Mime type %s is not allowed', 'amazon-s3-and-cloudfront' ), $type );
1523
 
1578
  'Bucket' => $bucket,
1579
  'Key' => $prefix . $file_name,
1580
  'SourceFile' => $file_path,
1581
+ 'ContentType' => $this->get_mime_type( $file_path ),
1582
  'CacheControl' => 'max-age=31536000',
1583
  'Expires' => date( 'D, d M Y H:i:s O', time() + 31536000 ),
1584
  );
classes/as3cf-filter.php CHANGED
@@ -849,7 +849,7 @@ abstract class AS3CF_Filter {
849
  * @return string
850
  */
851
  public static function remove_aws_query_strings( $content, $base_url = '' ) {
852
- $pattern = '\?[^\s"<\?]*(?:X-Amz-Algorithm|AWSAccessKeyId|Key-Pair-Id)=[^\s"<\?]+';
853
  $group = 0;
854
 
855
  if ( ! is_string( $content ) ) {
849
  * @return string
850
  */
851
  public static function remove_aws_query_strings( $content, $base_url = '' ) {
852
+ $pattern = '\?[^\s"<\?]*(?:X-Amz-Algorithm|AWSAccessKeyId|Key-Pair-Id|GoogleAccessId)=[^\s"<\?]+';
853
  $group = 0;
854
 
855
  if ( ! is_string( $content ) ) {
languages/amazon-s3-and-cloudfront-en.pot CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: amazon-s3-and-cloudfront\n"
10
  "Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
11
- "POT-Creation-Date: 2021-03-03 11:32+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -56,205 +56,205 @@ msgid "Media Library item with ID %d does not have a valid file path"
56
  msgstr ""
57
 
58
  #: classes/amazon-s3-and-cloudfront.php:1492
59
- #: classes/amazon-s3-and-cloudfront.php:1717
60
  #, php-format
61
  msgid "File %s does not exist"
62
  msgstr ""
63
 
64
- #: classes/amazon-s3-and-cloudfront.php:1521
65
  #, php-format
66
  msgid "Mime type %s is not allowed"
67
  msgstr ""
68
 
69
- #: classes/amazon-s3-and-cloudfront.php:1532
70
  msgid "Already offloaded to a different provider"
71
  msgstr ""
72
 
73
- #: classes/amazon-s3-and-cloudfront.php:1640
74
- #: classes/amazon-s3-and-cloudfront.php:1731
75
  #, php-format
76
  msgid "Error offloading %s to provider: %s"
77
  msgstr ""
78
 
79
- #: classes/amazon-s3-and-cloudfront.php:2854
80
  msgid "This action can only be performed through an admin screen."
81
  msgstr ""
82
 
83
- #: classes/amazon-s3-and-cloudfront.php:2856
84
  msgid "Cheatin&#8217; eh?"
85
  msgstr ""
86
 
87
- #: classes/amazon-s3-and-cloudfront.php:2858
88
  msgid "You do not have sufficient permissions to access this page."
89
  msgstr ""
90
 
91
- #: classes/amazon-s3-and-cloudfront.php:3182
92
  msgid "Error Getting Bucket Region"
93
  msgstr ""
94
 
95
- #: classes/amazon-s3-and-cloudfront.php:3183
96
  #, php-format
97
  msgid "There was an error attempting to get the region of the bucket %s: %s"
98
  msgstr ""
99
 
100
- #: classes/amazon-s3-and-cloudfront.php:3286
101
  msgid ""
102
  "This is a test file to check if the user has write permission to the bucket. "
103
  "Delete me if found."
104
  msgstr ""
105
 
106
- #: classes/amazon-s3-and-cloudfront.php:3292
107
  #, php-format
108
  msgid ""
109
  "There was an error attempting to check the permissions of the bucket %s: %s"
110
  msgstr ""
111
 
112
- #: classes/amazon-s3-and-cloudfront.php:3388
113
  msgid "Error creating bucket"
114
  msgstr ""
115
 
116
- #: classes/amazon-s3-and-cloudfront.php:3389
117
  msgid "Bucket name too short."
118
  msgstr ""
119
 
120
- #: classes/amazon-s3-and-cloudfront.php:3390
121
  msgid "Bucket name too long."
122
  msgstr ""
123
 
124
- #: classes/amazon-s3-and-cloudfront.php:3391
125
  msgid ""
126
  "Invalid character. Bucket names can contain lowercase letters, numbers, "
127
  "periods and hyphens."
128
  msgstr ""
129
 
130
- #: classes/amazon-s3-and-cloudfront.php:3392
131
  msgid "Error saving bucket"
132
  msgstr ""
133
 
134
- #: classes/amazon-s3-and-cloudfront.php:3393
135
  msgid "Error fetching buckets"
136
  msgstr ""
137
 
138
- #: classes/amazon-s3-and-cloudfront.php:3394
139
  msgid "Error getting URL preview: "
140
  msgstr ""
141
 
142
- #: classes/amazon-s3-and-cloudfront.php:3395
143
  msgid "The changes you made will be lost if you navigate away from this page"
144
  msgstr ""
145
 
146
- #: classes/amazon-s3-and-cloudfront.php:3396
147
  msgid "Getting diagnostic info..."
148
  msgstr ""
149
 
150
- #: classes/amazon-s3-and-cloudfront.php:3397
151
  msgid "Error getting diagnostic info: "
152
  msgstr ""
153
 
154
- #: classes/amazon-s3-and-cloudfront.php:3398
155
  msgctxt "placeholder for hidden access key, 39 char max"
156
  msgid "-- not shown --"
157
  msgstr ""
158
 
159
- #: classes/amazon-s3-and-cloudfront.php:3400
160
- #: classes/amazon-s3-and-cloudfront.php:5785
161
  msgid "Settings saved."
162
  msgstr ""
163
 
164
- #: classes/amazon-s3-and-cloudfront.php:3522
165
  msgid "Cheatin' eh?"
166
  msgstr ""
167
 
168
- #: classes/amazon-s3-and-cloudfront.php:3595
169
  #, php-format
170
  msgid "Could not set new Delivery Provider: %s"
171
  msgstr ""
172
 
173
- #: classes/amazon-s3-and-cloudfront.php:3670
174
- #: classes/amazon-s3-and-cloudfront.php:3800
175
  msgid "No bucket name provided."
176
  msgstr ""
177
 
178
- #: classes/amazon-s3-and-cloudfront.php:3679
179
  msgid "Bucket name not valid."
180
  msgstr ""
181
 
182
- #: classes/amazon-s3-and-cloudfront.php:3692
183
  msgid "No region provided."
184
  msgstr ""
185
 
186
- #: classes/amazon-s3-and-cloudfront.php:3769
187
  #, php-format
188
  msgctxt "Trying to change public access setting for given provider's bucket."
189
  msgid "Can't change Block All Public Access setting for %s buckets."
190
  msgstr ""
191
 
192
- #: classes/amazon-s3-and-cloudfront.php:3778
193
  msgid "No block public access setting provided."
194
  msgstr ""
195
 
196
- #: classes/amazon-s3-and-cloudfront.php:3791
197
  msgid "Storage Provider not configured with access credentials."
198
  msgstr ""
199
 
200
- #: classes/amazon-s3-and-cloudfront.php:3818
201
  msgid "Could not change Block All Public Access status for bucket."
202
  msgstr ""
203
 
204
- #: classes/amazon-s3-and-cloudfront.php:3835
205
  msgid ""
206
  "<strong>Failed to Enable Block All Public Access</strong> &mdash; We could "
207
  "not enable Block All Public Access. You will need to log in to the AWS "
208
  "Console and do it manually."
209
  msgstr ""
210
 
211
- #: classes/amazon-s3-and-cloudfront.php:3837
212
  msgid ""
213
  "<strong>Failed to Disable Block All Public Access</strong> &mdash; We could "
214
  "not disable Block All Public Access. You will need to log in to the AWS "
215
  "Console and do it manually."
216
  msgstr ""
217
 
218
- #: classes/amazon-s3-and-cloudfront.php:3872
219
  #: view/provider-select.php:329
220
  msgctxt "placeholder for hidden secret access key, 39 char max"
221
  msgid "-- not shown --"
222
  msgstr ""
223
 
224
- #: classes/amazon-s3-and-cloudfront.php:3895
225
  msgid "Key File not valid JSON."
226
  msgstr ""
227
 
228
- #: classes/amazon-s3-and-cloudfront.php:3915
229
- #: classes/amazon-s3-and-cloudfront.php:3929
230
- #: classes/amazon-s3-and-cloudfront.php:3938
231
  msgctxt "missing form field"
232
  msgid " not provided."
233
  msgstr ""
234
 
235
- #: classes/amazon-s3-and-cloudfront.php:3981
236
  msgctxt "Show the media library tab"
237
  msgid "Media Library"
238
  msgstr ""
239
 
240
- #: classes/amazon-s3-and-cloudfront.php:3982
241
  msgctxt "Show the addons tab"
242
  msgid "Addons"
243
  msgstr ""
244
 
245
- #: classes/amazon-s3-and-cloudfront.php:3983
246
  msgctxt "Show the support tab"
247
  msgid "Support"
248
  msgstr ""
249
 
250
- #: classes/amazon-s3-and-cloudfront.php:4159
251
  #, php-format
252
  msgid ""
253
  "<strong>WP Offload Media</strong> &mdash; The file %s has been given %s "
254
  "permissions in the bucket."
255
  msgstr ""
256
 
257
- #: classes/amazon-s3-and-cloudfront.php:4178
258
  msgid ""
259
  "<strong>WP Offload Media Requirement Missing</strong> &mdash; Looks like you "
260
  "don't have an image manipulation library installed on this server and "
@@ -262,7 +262,7 @@ msgid ""
262
  "Please setup GD or ImageMagick."
263
  msgstr ""
264
 
265
- #: classes/amazon-s3-and-cloudfront.php:4202
266
  #, php-format
267
  msgid ""
268
  "<strong>Missing Table</strong> &mdash; One or more required database tables "
@@ -270,18 +270,18 @@ msgid ""
270
  "details. %s"
271
  msgstr ""
272
 
273
- #: classes/amazon-s3-and-cloudfront.php:5024
274
  #, php-format
275
  msgid ""
276
  "<a href=\"%s\">Define your access keys</a> to enable write access to the "
277
  "bucket"
278
  msgstr ""
279
 
280
- #: classes/amazon-s3-and-cloudfront.php:5031
281
  msgid "Quick Start Guide"
282
  msgstr ""
283
 
284
- #: classes/amazon-s3-and-cloudfront.php:5033
285
  #, php-format
286
  msgid ""
287
  "Looks like we don't have write access to this bucket. It's likely that the "
@@ -290,7 +290,7 @@ msgid ""
290
  "correctly."
291
  msgstr ""
292
 
293
- #: classes/amazon-s3-and-cloudfront.php:5035
294
  #, php-format
295
  msgid ""
296
  "Looks like we don't have access to the buckets. It's likely that the user "
@@ -298,39 +298,39 @@ msgid ""
298
  "Please see our %s for instructions on setting up permissions correctly."
299
  msgstr ""
300
 
301
- #: classes/amazon-s3-and-cloudfront.php:5203
302
  msgid "WP Offload Media Activation"
303
  msgstr ""
304
 
305
- #: classes/amazon-s3-and-cloudfront.php:5204
306
  msgid ""
307
  "WP Offload Media Lite and WP Offload Media cannot both be active. We've "
308
  "automatically deactivated WP Offload Media Lite."
309
  msgstr ""
310
 
311
- #: classes/amazon-s3-and-cloudfront.php:5206
312
  msgid "WP Offload Media Lite Activation"
313
  msgstr ""
314
 
315
- #: classes/amazon-s3-and-cloudfront.php:5207
316
  msgid ""
317
  "WP Offload Media Lite and WP Offload Media cannot both be active. We've "
318
  "automatically deactivated WP Offload Media."
319
  msgstr ""
320
 
321
- #: classes/amazon-s3-and-cloudfront.php:5261
322
  msgid "More&nbsp;info&nbsp;&raquo;"
323
  msgstr ""
324
 
325
- #: classes/amazon-s3-and-cloudfront.php:5341
326
  msgid "this doc"
327
  msgstr ""
328
 
329
- #: classes/amazon-s3-and-cloudfront.php:5343
330
  msgid "WP Offload Media Feature Removed"
331
  msgstr ""
332
 
333
- #: classes/amazon-s3-and-cloudfront.php:5344
334
  #, php-format
335
  msgid ""
336
  "You had the \"Always non-SSL\" option selected in your settings, but we've "
@@ -341,68 +341,68 @@ msgid ""
341
  "to the old behavior."
342
  msgstr ""
343
 
344
- #: classes/amazon-s3-and-cloudfront.php:5379
345
  msgid "Offload"
346
  msgstr ""
347
 
348
- #: classes/amazon-s3-and-cloudfront.php:5483
349
  msgid "No"
350
  msgstr ""
351
 
352
- #: classes/amazon-s3-and-cloudfront.php:5488
353
  msgctxt "Storage provider key name"
354
  msgid "Storage Provider"
355
  msgstr ""
356
 
357
- #: classes/amazon-s3-and-cloudfront.php:5489
358
  msgctxt "Storage provider name"
359
  msgid "Storage Provider"
360
  msgstr ""
361
 
362
- #: classes/amazon-s3-and-cloudfront.php:5490
363
  msgctxt "Bucket name"
364
  msgid "Bucket"
365
  msgstr ""
366
 
367
- #: classes/amazon-s3-and-cloudfront.php:5491
368
  msgctxt "Path to file in bucket"
369
  msgid "Path"
370
  msgstr ""
371
 
372
- #: classes/amazon-s3-and-cloudfront.php:5492
373
  msgctxt "Location of bucket"
374
  msgid "Region"
375
  msgstr ""
376
 
377
- #: classes/amazon-s3-and-cloudfront.php:5493
378
  msgctxt "Access control list of the file in bucket"
379
  msgid "Access"
380
  msgstr ""
381
 
382
- #: classes/amazon-s3-and-cloudfront.php:5494
383
  msgid "URL"
384
  msgstr ""
385
 
386
- #: classes/amazon-s3-and-cloudfront.php:5495
387
  msgctxt "Whether or not metadata has been verified"
388
  msgid "Verified"
389
  msgstr ""
390
 
391
- #: classes/amazon-s3-and-cloudfront.php:5748
392
  msgid "Assets Pull"
393
  msgstr ""
394
 
395
- #: classes/amazon-s3-and-cloudfront.php:5749
396
  msgid ""
397
  "An addon for WP Offload Media to serve your site's JS, CSS, and other "
398
  "enqueued assets from Amazon CloudFront or another CDN."
399
  msgstr ""
400
 
401
- #: classes/amazon-s3-and-cloudfront.php:5753
402
  msgid "Feature"
403
  msgstr ""
404
 
405
- #: classes/amazon-s3-and-cloudfront.php:5799
406
  #, php-format
407
  msgid ""
408
  "<strong>Amazon Web Services Plugin No Longer Required</strong> &mdash; As of "
@@ -413,7 +413,7 @@ msgid ""
413
  "plugin, it should be safe to deactivate and delete it. %2$s"
414
  msgstr ""
415
 
416
- #: classes/amazon-s3-and-cloudfront.php:5831
417
  #, php-format
418
  msgid ""
419
  "<strong>WP Offload Media Settings Moved</strong> &mdash; You now define your "
8
  msgstr ""
9
  "Project-Id-Version: amazon-s3-and-cloudfront\n"
10
  "Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
11
+ "POT-Creation-Date: 2021-07-19 13:57+0100\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
56
  msgstr ""
57
 
58
  #: classes/amazon-s3-and-cloudfront.php:1492
59
+ #: classes/amazon-s3-and-cloudfront.php:1718
60
  #, php-format
61
  msgid "File %s does not exist"
62
  msgstr ""
63
 
64
+ #: classes/amazon-s3-and-cloudfront.php:1522
65
  #, php-format
66
  msgid "Mime type %s is not allowed"
67
  msgstr ""
68
 
69
+ #: classes/amazon-s3-and-cloudfront.php:1533
70
  msgid "Already offloaded to a different provider"
71
  msgstr ""
72
 
73
+ #: classes/amazon-s3-and-cloudfront.php:1641
74
+ #: classes/amazon-s3-and-cloudfront.php:1732
75
  #, php-format
76
  msgid "Error offloading %s to provider: %s"
77
  msgstr ""
78
 
79
+ #: classes/amazon-s3-and-cloudfront.php:2855
80
  msgid "This action can only be performed through an admin screen."
81
  msgstr ""
82
 
83
+ #: classes/amazon-s3-and-cloudfront.php:2857
84
  msgid "Cheatin&#8217; eh?"
85
  msgstr ""
86
 
87
+ #: classes/amazon-s3-and-cloudfront.php:2859
88
  msgid "You do not have sufficient permissions to access this page."
89
  msgstr ""
90
 
91
+ #: classes/amazon-s3-and-cloudfront.php:3183
92
  msgid "Error Getting Bucket Region"
93
  msgstr ""
94
 
95
+ #: classes/amazon-s3-and-cloudfront.php:3184
96
  #, php-format
97
  msgid "There was an error attempting to get the region of the bucket %s: %s"
98
  msgstr ""
99
 
100
+ #: classes/amazon-s3-and-cloudfront.php:3287
101
  msgid ""
102
  "This is a test file to check if the user has write permission to the bucket. "
103
  "Delete me if found."
104
  msgstr ""
105
 
106
+ #: classes/amazon-s3-and-cloudfront.php:3293
107
  #, php-format
108
  msgid ""
109
  "There was an error attempting to check the permissions of the bucket %s: %s"
110
  msgstr ""
111
 
112
+ #: classes/amazon-s3-and-cloudfront.php:3389
113
  msgid "Error creating bucket"
114
  msgstr ""
115
 
116
+ #: classes/amazon-s3-and-cloudfront.php:3390
117
  msgid "Bucket name too short."
118
  msgstr ""
119
 
120
+ #: classes/amazon-s3-and-cloudfront.php:3391
121
  msgid "Bucket name too long."
122
  msgstr ""
123
 
124
+ #: classes/amazon-s3-and-cloudfront.php:3392
125
  msgid ""
126
  "Invalid character. Bucket names can contain lowercase letters, numbers, "
127
  "periods and hyphens."
128
  msgstr ""
129
 
130
+ #: classes/amazon-s3-and-cloudfront.php:3393
131
  msgid "Error saving bucket"
132
  msgstr ""
133
 
134
+ #: classes/amazon-s3-and-cloudfront.php:3394
135
  msgid "Error fetching buckets"
136
  msgstr ""
137
 
138
+ #: classes/amazon-s3-and-cloudfront.php:3395
139
  msgid "Error getting URL preview: "
140
  msgstr ""
141
 
142
+ #: classes/amazon-s3-and-cloudfront.php:3396
143
  msgid "The changes you made will be lost if you navigate away from this page"
144
  msgstr ""
145
 
146
+ #: classes/amazon-s3-and-cloudfront.php:3397
147
  msgid "Getting diagnostic info..."
148
  msgstr ""
149
 
150
+ #: classes/amazon-s3-and-cloudfront.php:3398
151
  msgid "Error getting diagnostic info: "
152
  msgstr ""
153
 
154
+ #: classes/amazon-s3-and-cloudfront.php:3399
155
  msgctxt "placeholder for hidden access key, 39 char max"
156
  msgid "-- not shown --"
157
  msgstr ""
158
 
159
+ #: classes/amazon-s3-and-cloudfront.php:3401
160
+ #: classes/amazon-s3-and-cloudfront.php:5786
161
  msgid "Settings saved."
162
  msgstr ""
163
 
164
+ #: classes/amazon-s3-and-cloudfront.php:3523
165
  msgid "Cheatin' eh?"
166
  msgstr ""
167
 
168
+ #: classes/amazon-s3-and-cloudfront.php:3596
169
  #, php-format
170
  msgid "Could not set new Delivery Provider: %s"
171
  msgstr ""
172
 
173
+ #: classes/amazon-s3-and-cloudfront.php:3671
174
+ #: classes/amazon-s3-and-cloudfront.php:3801
175
  msgid "No bucket name provided."
176
  msgstr ""
177
 
178
+ #: classes/amazon-s3-and-cloudfront.php:3680
179
  msgid "Bucket name not valid."
180
  msgstr ""
181
 
182
+ #: classes/amazon-s3-and-cloudfront.php:3693
183
  msgid "No region provided."
184
  msgstr ""
185
 
186
+ #: classes/amazon-s3-and-cloudfront.php:3770
187
  #, php-format
188
  msgctxt "Trying to change public access setting for given provider's bucket."
189
  msgid "Can't change Block All Public Access setting for %s buckets."
190
  msgstr ""
191
 
192
+ #: classes/amazon-s3-and-cloudfront.php:3779
193
  msgid "No block public access setting provided."
194
  msgstr ""
195
 
196
+ #: classes/amazon-s3-and-cloudfront.php:3792
197
  msgid "Storage Provider not configured with access credentials."
198
  msgstr ""
199
 
200
+ #: classes/amazon-s3-and-cloudfront.php:3819
201
  msgid "Could not change Block All Public Access status for bucket."
202
  msgstr ""
203
 
204
+ #: classes/amazon-s3-and-cloudfront.php:3836
205
  msgid ""
206
  "<strong>Failed to Enable Block All Public Access</strong> &mdash; We could "
207
  "not enable Block All Public Access. You will need to log in to the AWS "
208
  "Console and do it manually."
209
  msgstr ""
210
 
211
+ #: classes/amazon-s3-and-cloudfront.php:3838
212
  msgid ""
213
  "<strong>Failed to Disable Block All Public Access</strong> &mdash; We could "
214
  "not disable Block All Public Access. You will need to log in to the AWS "
215
  "Console and do it manually."
216
  msgstr ""
217
 
218
+ #: classes/amazon-s3-and-cloudfront.php:3873
219
  #: view/provider-select.php:329
220
  msgctxt "placeholder for hidden secret access key, 39 char max"
221
  msgid "-- not shown --"
222
  msgstr ""
223
 
224
+ #: classes/amazon-s3-and-cloudfront.php:3896
225
  msgid "Key File not valid JSON."
226
  msgstr ""
227
 
228
+ #: classes/amazon-s3-and-cloudfront.php:3916
229
+ #: classes/amazon-s3-and-cloudfront.php:3930
230
+ #: classes/amazon-s3-and-cloudfront.php:3939
231
  msgctxt "missing form field"
232
  msgid " not provided."
233
  msgstr ""
234
 
235
+ #: classes/amazon-s3-and-cloudfront.php:3982
236
  msgctxt "Show the media library tab"
237
  msgid "Media Library"
238
  msgstr ""
239
 
240
+ #: classes/amazon-s3-and-cloudfront.php:3983
241
  msgctxt "Show the addons tab"
242
  msgid "Addons"
243
  msgstr ""
244
 
245
+ #: classes/amazon-s3-and-cloudfront.php:3984
246
  msgctxt "Show the support tab"
247
  msgid "Support"
248
  msgstr ""
249
 
250
+ #: classes/amazon-s3-and-cloudfront.php:4160
251
  #, php-format
252
  msgid ""
253
  "<strong>WP Offload Media</strong> &mdash; The file %s has been given %s "
254
  "permissions in the bucket."
255
  msgstr ""
256
 
257
+ #: classes/amazon-s3-and-cloudfront.php:4179
258
  msgid ""
259
  "<strong>WP Offload Media Requirement Missing</strong> &mdash; Looks like you "
260
  "don't have an image manipulation library installed on this server and "
262
  "Please setup GD or ImageMagick."
263
  msgstr ""
264
 
265
+ #: classes/amazon-s3-and-cloudfront.php:4203
266
  #, php-format
267
  msgid ""
268
  "<strong>Missing Table</strong> &mdash; One or more required database tables "
270
  "details. %s"
271
  msgstr ""
272
 
273
+ #: classes/amazon-s3-and-cloudfront.php:5025
274
  #, php-format
275
  msgid ""
276
  "<a href=\"%s\">Define your access keys</a> to enable write access to the "
277
  "bucket"
278
  msgstr ""
279
 
280
+ #: classes/amazon-s3-and-cloudfront.php:5032
281
  msgid "Quick Start Guide"
282
  msgstr ""
283
 
284
+ #: classes/amazon-s3-and-cloudfront.php:5034
285
  #, php-format
286
  msgid ""
287
  "Looks like we don't have write access to this bucket. It's likely that the "
290
  "correctly."
291
  msgstr ""
292
 
293
+ #: classes/amazon-s3-and-cloudfront.php:5036
294
  #, php-format
295
  msgid ""
296
  "Looks like we don't have access to the buckets. It's likely that the user "
298
  "Please see our %s for instructions on setting up permissions correctly."
299
  msgstr ""
300
 
301
+ #: classes/amazon-s3-and-cloudfront.php:5204
302
  msgid "WP Offload Media Activation"
303
  msgstr ""
304
 
305
+ #: classes/amazon-s3-and-cloudfront.php:5205
306
  msgid ""
307
  "WP Offload Media Lite and WP Offload Media cannot both be active. We've "
308
  "automatically deactivated WP Offload Media Lite."
309
  msgstr ""
310
 
311
+ #: classes/amazon-s3-and-cloudfront.php:5207
312
  msgid "WP Offload Media Lite Activation"
313
  msgstr ""
314
 
315
+ #: classes/amazon-s3-and-cloudfront.php:5208
316
  msgid ""
317
  "WP Offload Media Lite and WP Offload Media cannot both be active. We've "
318
  "automatically deactivated WP Offload Media."
319
  msgstr ""
320
 
321
+ #: classes/amazon-s3-and-cloudfront.php:5262
322
  msgid "More&nbsp;info&nbsp;&raquo;"
323
  msgstr ""
324
 
325
+ #: classes/amazon-s3-and-cloudfront.php:5342
326
  msgid "this doc"
327
  msgstr ""
328
 
329
+ #: classes/amazon-s3-and-cloudfront.php:5344
330
  msgid "WP Offload Media Feature Removed"
331
  msgstr ""
332
 
333
+ #: classes/amazon-s3-and-cloudfront.php:5345
334
  #, php-format
335
  msgid ""
336
  "You had the \"Always non-SSL\" option selected in your settings, but we've "
341
  "to the old behavior."
342
  msgstr ""
343
 
344
+ #: classes/amazon-s3-and-cloudfront.php:5380
345
  msgid "Offload"
346
  msgstr ""
347
 
348
+ #: classes/amazon-s3-and-cloudfront.php:5484
349
  msgid "No"
350
  msgstr ""
351
 
352
+ #: classes/amazon-s3-and-cloudfront.php:5489
353
  msgctxt "Storage provider key name"
354
  msgid "Storage Provider"
355
  msgstr ""
356
 
357
+ #: classes/amazon-s3-and-cloudfront.php:5490
358
  msgctxt "Storage provider name"
359
  msgid "Storage Provider"
360
  msgstr ""
361
 
362
+ #: classes/amazon-s3-and-cloudfront.php:5491
363
  msgctxt "Bucket name"
364
  msgid "Bucket"
365
  msgstr ""
366
 
367
+ #: classes/amazon-s3-and-cloudfront.php:5492
368
  msgctxt "Path to file in bucket"
369
  msgid "Path"
370
  msgstr ""
371
 
372
+ #: classes/amazon-s3-and-cloudfront.php:5493
373
  msgctxt "Location of bucket"
374
  msgid "Region"
375
  msgstr ""
376
 
377
+ #: classes/amazon-s3-and-cloudfront.php:5494
378
  msgctxt "Access control list of the file in bucket"
379
  msgid "Access"
380
  msgstr ""
381
 
382
+ #: classes/amazon-s3-and-cloudfront.php:5495
383
  msgid "URL"
384
  msgstr ""
385
 
386
+ #: classes/amazon-s3-and-cloudfront.php:5496
387
  msgctxt "Whether or not metadata has been verified"
388
  msgid "Verified"
389
  msgstr ""
390
 
391
+ #: classes/amazon-s3-and-cloudfront.php:5749
392
  msgid "Assets Pull"
393
  msgstr ""
394
 
395
+ #: classes/amazon-s3-and-cloudfront.php:5750
396
  msgid ""
397
  "An addon for WP Offload Media to serve your site's JS, CSS, and other "
398
  "enqueued assets from Amazon CloudFront or another CDN."
399
  msgstr ""
400
 
401
+ #: classes/amazon-s3-and-cloudfront.php:5754
402
  msgid "Feature"
403
  msgstr ""
404
 
405
+ #: classes/amazon-s3-and-cloudfront.php:5800
406
  #, php-format
407
  msgid ""
408
  "<strong>Amazon Web Services Plugin No Longer Required</strong> &mdash; As of "
413
  "plugin, it should be safe to deactivate and delete it. %2$s"
414
  msgstr ""
415
 
416
+ #: classes/amazon-s3-and-cloudfront.php:5832
417
  #, php-format
418
  msgid ""
419
  "<strong>WP Offload Media Settings Moved</strong> &mdash; You now define your "
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: bradt, deliciousbrains, ianmjones
3
  Tags: uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google cloud storage, gcs, mirror, admin, media, cdn, cloudfront
4
  Requires at least: 4.9
5
- Tested up to: 5.7
6
  Requires PHP: 5.5
7
- Stable tag: 2.5.3
8
  License: GPLv3
9
 
10
  Copies files to Amazon S3, DigitalOcean Spaces or Google Cloud Storage as they are uploaded to the Media Library. Optionally configure Amazon CloudFront or another CDN for faster delivery.
@@ -13,7 +13,7 @@ Copies files to Amazon S3, DigitalOcean Spaces or Google Cloud Storage as they a
13
 
14
  FORMERLY WP OFFLOAD S3 LITE
15
 
16
- https://www.youtube.com/watch?v=_PVybEGaRXc
17
 
18
  This plugin automatically copies images, videos, documents, and any other media added through WordPress' media uploader to [Amazon S3](http://aws.amazon.com/s3/), [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/) or [Google Cloud Storage](https://cloud.google.com/storage/). It then automatically replaces the URL to each media file with their respective Amazon S3, DigitalOcean Spaces or Google Cloud Storage URL or, if you have configured [Amazon CloudFront](http://aws.amazon.com/cloudfront/) or another CDN with or without a custom domain, that URL instead. Image thumbnails are also copied to the bucket and delivered through the correct remote URL.
19
 
@@ -81,6 +81,11 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
84
  = WP Offload Media Lite 2.5.3 - 2021-03-03 =
85
  * New: Added DigitalOcean region San Francisco 3
86
  * Bug fix: Domain mapping not handled correctly when the local URL includes a port number
2
  Contributors: bradt, deliciousbrains, ianmjones
3
  Tags: uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google cloud storage, gcs, mirror, admin, media, cdn, cloudfront
4
  Requires at least: 4.9
5
+ Tested up to: 5.8
6
  Requires PHP: 5.5
7
+ Stable tag: 2.5.5
8
  License: GPLv3
9
 
10
  Copies files to Amazon S3, DigitalOcean Spaces or Google Cloud Storage as they are uploaded to the Media Library. Optionally configure Amazon CloudFront or another CDN for faster delivery.
13
 
14
  FORMERLY WP OFFLOAD S3 LITE
15
 
16
+ https://www.youtube.com/watch?v=I-wTMXMeFu4
17
 
18
  This plugin automatically copies images, videos, documents, and any other media added through WordPress' media uploader to [Amazon S3](http://aws.amazon.com/s3/), [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/) or [Google Cloud Storage](https://cloud.google.com/storage/). It then automatically replaces the URL to each media file with their respective Amazon S3, DigitalOcean Spaces or Google Cloud Storage URL or, if you have configured [Amazon CloudFront](http://aws.amazon.com/cloudfront/) or another CDN with or without a custom domain, that URL instead. Image thumbnails are also copied to the bucket and delivered through the correct remote URL.
19
 
81
 
82
  == Changelog ==
83
 
84
+ = WP Offload Media Lite 2.5.5 - 2021-07-19 =
85
+ * Bug fix: Signed GCS URLs broken when updating a post
86
+ * Bug fix: Incorrect mime type set on scaled image's bucket object when thumbnail format differs from original file's format
87
+ * Tested: WordPress 5.8
88
+
89
  = WP Offload Media Lite 2.5.3 - 2021-03-03 =
90
  * New: Added DigitalOcean region San Francisco 3
91
  * Bug fix: Domain mapping not handled correctly when the local URL includes a port number
wordpress-s3.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Offload Media Lite
4
  Plugin URI: http://wordpress.org/extend/plugins/amazon-s3-and-cloudfront/
5
  Description: Automatically copies media uploads to Amazon S3, DigitalOcean Spaces or Google Cloud Storage for storage and delivery. Optionally configure Amazon CloudFront or another CDN for even faster delivery.
6
  Author: Delicious Brains
7
- Version: 2.5.3
8
  Author URI: https://deliciousbrains.com/
9
  Network: True
10
  Text Domain: amazon-s3-and-cloudfront
@@ -26,7 +26,7 @@ Domain Path: /languages/
26
  // Then completely rewritten.
27
  */
28
 
29
- $GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '2.5.3';
30
 
31
  require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
32
 
4
  Plugin URI: http://wordpress.org/extend/plugins/amazon-s3-and-cloudfront/
5
  Description: Automatically copies media uploads to Amazon S3, DigitalOcean Spaces or Google Cloud Storage for storage and delivery. Optionally configure Amazon CloudFront or another CDN for even faster delivery.
6
  Author: Delicious Brains
7
+ Version: 2.5.5
8
  Author URI: https://deliciousbrains.com/
9
  Network: True
10
  Text Domain: amazon-s3-and-cloudfront
26
  // Then completely rewritten.
27
  */
28
 
29
+ $GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '2.5.5';
30
 
31
  require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
32