WP Offload S3 Lite - Version 1.4.1

Version Description

= 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 1.4.1
Comparing to
See all releases

Code changes from version 1.4 to 1.4.1

README.md CHANGED
@@ -4,7 +4,7 @@
4
  **Requires at least:** 4.6
5
  **Tested up to:** 4.9
6
  **Requires PHP:** 5.5
7
- **Stable tag:** 1.4
8
  **License:** GPLv3
9
 
10
  Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
@@ -71,6 +71,9 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
71
 
72
  ## Changelog ##
73
 
 
 
 
74
  ### WP Offload S3 Lite 1.4 - 2018-06-12 ###
75
  * New: Using AWS PHP SDK v3
76
  * New: Requires PHP 5.5+
4
  **Requires at least:** 4.6
5
  **Tested up to:** 4.9
6
  **Requires PHP:** 5.5
7
+ **Stable tag:** 1.4.1
8
  **License:** GPLv3
9
 
10
  Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
71
 
72
  ## Changelog ##
73
 
74
+ ### WP Offload S3 Lite 1.4.1 - 2018-06-21 ###
75
+ * Bug fix: Incorrect filesize saved to metadata when image removed from local server
76
+
77
  ### WP Offload S3 Lite 1.4 - 2018-06-12 ###
78
  * New: Using AWS PHP SDK v3
79
  * New: Requires PHP 5.5+
classes/amazon-s3-and-cloudfront.php CHANGED
@@ -1015,6 +1015,8 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
1015
  return $this->return_upload_error( $error_msg, $return_metadata );
1016
  }
1017
 
 
 
1018
  $file_name = wp_basename( $file_path );
1019
  $type = get_post_mime_type( $post_id );
1020
  $allowed_types = $this->get_allowed_mime_types();
@@ -1163,7 +1165,7 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
1163
  $files_to_remove = array_unique( $files_to_remove );
1164
 
1165
  // Delete the files and record original file's size before removal.
1166
- $filesize = $this->remove_local_files( $files_to_remove, $post_id );
1167
 
1168
  // Store filesize in the attachment meta data for use by WP
1169
  if ( 0 < $filesize ) {
@@ -1287,23 +1289,15 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
1287
  *
1288
  * @param array $file_paths array of files to remove
1289
  * @param int $attachment_id
1290
- *
1291
- * @return int Original file's size if attachment ID given, otherwise always 0.
1292
  */
1293
  function remove_local_files( $file_paths, $attachment_id = 0 ) {
1294
- $filesize = 0;
1295
  $filesize_total = 0;
1296
 
1297
  foreach ( $file_paths as $index => $path ) {
1298
  if ( ! empty( $attachment_id ) && is_int( $attachment_id ) ) {
1299
  $bytes = filesize( $path );
1300
 
1301
- if ( false !== $bytes ) {
1302
- $filesize_total += $bytes;
1303
-
1304
- // Will return the original file's size.
1305
- $filesize = $bytes;
1306
- }
1307
  }
1308
 
1309
  // Individual files might still be kept local, but we're still going to count them towards total above.
@@ -1328,8 +1322,6 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
1328
  if ( $filesize_total > 0 ) {
1329
  update_post_meta( $attachment_id, 'wpos3_filesize_total', $filesize_total );
1330
  }
1331
-
1332
- return $filesize;
1333
  }
1334
 
1335
  /**
1015
  return $this->return_upload_error( $error_msg, $return_metadata );
1016
  }
1017
 
1018
+ // Get original file's stats.
1019
+ $filesize = filesize( $file_path );
1020
  $file_name = wp_basename( $file_path );
1021
  $type = get_post_mime_type( $post_id );
1022
  $allowed_types = $this->get_allowed_mime_types();
1165
  $files_to_remove = array_unique( $files_to_remove );
1166
 
1167
  // Delete the files and record original file's size before removal.
1168
+ $this->remove_local_files( $files_to_remove, $post_id );
1169
 
1170
  // Store filesize in the attachment meta data for use by WP
1171
  if ( 0 < $filesize ) {
1289
  *
1290
  * @param array $file_paths array of files to remove
1291
  * @param int $attachment_id
 
 
1292
  */
1293
  function remove_local_files( $file_paths, $attachment_id = 0 ) {
 
1294
  $filesize_total = 0;
1295
 
1296
  foreach ( $file_paths as $index => $path ) {
1297
  if ( ! empty( $attachment_id ) && is_int( $attachment_id ) ) {
1298
  $bytes = filesize( $path );
1299
 
1300
+ $filesize_total += ( false !== $bytes ) ? $bytes : 0;
 
 
 
 
 
1301
  }
1302
 
1303
  // Individual files might still be kept local, but we're still going to count them towards total above.
1322
  if ( $filesize_total > 0 ) {
1323
  update_post_meta( $attachment_id, 'wpos3_filesize_total', $filesize_total );
1324
  }
 
 
1325
  }
1326
 
1327
  /**
classes/as3cf-plugin-base.php CHANGED
@@ -312,6 +312,18 @@ abstract class AS3CF_Plugin_Base {
312
  return apply_filters( 'as3cf_get_setting', $setting, $key );
313
  }
314
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  /**
316
  * Gets a single setting that has been defined in the plugin settings constant
317
  *
312
  return apply_filters( 'as3cf_get_setting', $setting, $key );
313
  }
314
 
315
+ /**
316
+ * Get a specific setting from the core plugin.
317
+ *
318
+ * @param $key
319
+ * @param string $default
320
+ *
321
+ * @return string
322
+ */
323
+ public function get_core_setting( $key, $default = '' ) {
324
+ return $this->get_setting( $key, $default );
325
+ }
326
+
327
  /**
328
  * Gets a single setting that has been defined in the plugin settings constant
329
  *
classes/providers/provider.php CHANGED
@@ -110,7 +110,7 @@ abstract class Provider {
110
  return $constant ? constant( $constant ) : '';
111
  }
112
 
113
- return $this->as3cf->get_setting( $this->access_key_id_setting_name );
114
  }
115
 
116
  /**
@@ -127,7 +127,7 @@ abstract class Provider {
127
  return $constant ? constant( $constant ) : '';
128
  }
129
 
130
- return $this->as3cf->get_setting( $this->secret_access_key_setting_name );
131
  }
132
 
133
  /**
110
  return $constant ? constant( $constant ) : '';
111
  }
112
 
113
+ return $this->as3cf->get_core_setting( $this->access_key_id_setting_name );
114
  }
115
 
116
  /**
127
  return $constant ? constant( $constant ) : '';
128
  }
129
 
130
+ return $this->as3cf->get_core_setting( $this->secret_access_key_setting_name );
131
  }
132
 
133
  /**
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: 2018-06-12 12:39+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"
@@ -44,7 +44,7 @@ msgid "The Access Key ID must be set."
44
  msgstr ""
45
 
46
  #: classes/amazon-s3-and-cloudfront.php:800
47
- #: classes/amazon-s3-and-cloudfront.php:2867
48
  #: view/settings/settings.php:88
49
  msgctxt "placeholder for hidden access key, 39 char max"
50
  msgid "-- not shown --"
@@ -59,138 +59,138 @@ msgid "Access keys removed from the database successfully."
59
  msgstr ""
60
 
61
  #: classes/amazon-s3-and-cloudfront.php:1013
62
- #: classes/amazon-s3-and-cloudfront.php:1143
63
  #, php-format
64
  msgid "File %s does not exist"
65
  msgstr ""
66
 
67
- #: classes/amazon-s3-and-cloudfront.php:1024
68
  #, php-format
69
  msgid "Mime type %s is not allowed"
70
  msgstr ""
71
 
72
- #: classes/amazon-s3-and-cloudfront.php:1107
73
- #: classes/amazon-s3-and-cloudfront.php:1151
74
  #, php-format
75
  msgid "Error uploading %s to S3: %s"
76
  msgstr ""
77
 
78
- #: classes/amazon-s3-and-cloudfront.php:2342
79
  msgid "This action can only be performed through an admin screen."
80
  msgstr ""
81
 
82
- #: classes/amazon-s3-and-cloudfront.php:2344
83
  msgid "Cheatin&#8217; eh?"
84
  msgstr ""
85
 
86
- #: classes/amazon-s3-and-cloudfront.php:2346
87
  msgid "You do not have sufficient permissions to access this page."
88
  msgstr ""
89
 
90
- #: classes/amazon-s3-and-cloudfront.php:2364
91
  msgid "No bucket name provided."
92
  msgstr ""
93
 
94
- #: classes/amazon-s3-and-cloudfront.php:2675
95
  msgid "Error Getting Bucket Region"
96
  msgstr ""
97
 
98
- #: classes/amazon-s3-and-cloudfront.php:2676
99
  #, php-format
100
  msgid "There was an error attempting to get the region of the bucket %s: %s"
101
  msgstr ""
102
 
103
- #: classes/amazon-s3-and-cloudfront.php:2789
104
  msgid ""
105
  "This is a test file to check if the user has write permission to S3. Delete "
106
  "me if found."
107
  msgstr ""
108
 
109
- #: classes/amazon-s3-and-cloudfront.php:2795
110
  #, php-format
111
  msgid ""
112
  "There was an error attempting to check the permissions of the bucket %s: %s"
113
  msgstr ""
114
 
115
- #: classes/amazon-s3-and-cloudfront.php:2857
116
  msgid "Error creating bucket"
117
  msgstr ""
118
 
119
- #: classes/amazon-s3-and-cloudfront.php:2858
120
  msgid "Bucket name too short."
121
  msgstr ""
122
 
123
- #: classes/amazon-s3-and-cloudfront.php:2859
124
  msgid "Bucket name too long."
125
  msgstr ""
126
 
127
- #: classes/amazon-s3-and-cloudfront.php:2860
128
  msgid ""
129
  "Invalid character. Bucket names can contain lowercase letters, numbers, "
130
  "periods and hyphens."
131
  msgstr ""
132
 
133
- #: classes/amazon-s3-and-cloudfront.php:2861
134
  msgid "Error saving bucket"
135
  msgstr ""
136
 
137
- #: classes/amazon-s3-and-cloudfront.php:2862
138
  msgid "Error fetching buckets"
139
  msgstr ""
140
 
141
- #: classes/amazon-s3-and-cloudfront.php:2863
142
  msgid "Error getting URL preview: "
143
  msgstr ""
144
 
145
- #: classes/amazon-s3-and-cloudfront.php:2864
146
  msgid "The changes you made will be lost if you navigate away from this page"
147
  msgstr ""
148
 
149
- #: classes/amazon-s3-and-cloudfront.php:2865
150
  msgid "Getting diagnostic info..."
151
  msgstr ""
152
 
153
- #: classes/amazon-s3-and-cloudfront.php:2866
154
  msgid "Error getting diagnostic info: "
155
  msgstr ""
156
 
157
- #: classes/amazon-s3-and-cloudfront.php:2869
158
- #: classes/amazon-s3-and-cloudfront.php:4589
159
  msgid "Settings saved."
160
  msgstr ""
161
 
162
- #: classes/amazon-s3-and-cloudfront.php:2940
163
  msgid "Cheatin' eh?"
164
  msgstr ""
165
 
166
- #: classes/amazon-s3-and-cloudfront.php:2989
167
  msgctxt "Show the media library tab"
168
  msgid "Media Library"
169
  msgstr ""
170
 
171
- #: classes/amazon-s3-and-cloudfront.php:2990
172
  msgctxt "Show the addons tab"
173
  msgid "Addons"
174
  msgstr ""
175
 
176
- #: classes/amazon-s3-and-cloudfront.php:2991
177
  msgctxt "Show the settings tab"
178
  msgid "Settings"
179
  msgstr ""
180
 
181
- #: classes/amazon-s3-and-cloudfront.php:2992
182
  msgctxt "Show the support tab"
183
  msgid "Support"
184
  msgstr ""
185
 
186
- #: classes/amazon-s3-and-cloudfront.php:3236
187
  #, php-format
188
  msgid ""
189
  "<strong>WP Offload S3</strong> &mdash; The file %s has been given %s "
190
  "permissions on Amazon S3."
191
  msgstr ""
192
 
193
- #: classes/amazon-s3-and-cloudfront.php:3255
194
  msgid ""
195
  "<strong>WP Offload S3 Requirement Missing</strong> &mdash; Looks like you "
196
  "don't have an image manipulation library installed on this server and "
@@ -198,17 +198,17 @@ msgid ""
198
  "Please setup GD or ImageMagick."
199
  msgstr ""
200
 
201
- #: classes/amazon-s3-and-cloudfront.php:3869
202
  #, php-format
203
  msgid ""
204
  "<a href=\"%s\">Define your AWS keys</a> to enable write access to the bucket"
205
  msgstr ""
206
 
207
- #: classes/amazon-s3-and-cloudfront.php:3876
208
  msgid "Quick Start Guide"
209
  msgstr ""
210
 
211
- #: classes/amazon-s3-and-cloudfront.php:3878
212
  #, php-format
213
  msgid ""
214
  "Looks like we don't have write access to this bucket. It's likely that the "
@@ -217,7 +217,7 @@ msgid ""
217
  "correctly."
218
  msgstr ""
219
 
220
- #: classes/amazon-s3-and-cloudfront.php:3880
221
  #, php-format
222
  msgid ""
223
  "Looks like we don't have access to the buckets. It's likely that the user "
@@ -225,39 +225,39 @@ msgid ""
225
  "Please see our %s for instructions on setting up permissions correctly."
226
  msgstr ""
227
 
228
- #: classes/amazon-s3-and-cloudfront.php:4030
229
  msgid "WP Offload S3 Activation"
230
  msgstr ""
231
 
232
- #: classes/amazon-s3-and-cloudfront.php:4031
233
  msgid ""
234
  "WP Offload S3 Lite and WP Offload S3 cannot both be active. We've "
235
  "automatically deactivated WP Offload S3 Lite."
236
  msgstr ""
237
 
238
- #: classes/amazon-s3-and-cloudfront.php:4033
239
  msgid "WP Offload S3 Lite Activation"
240
  msgstr ""
241
 
242
- #: classes/amazon-s3-and-cloudfront.php:4034
243
  msgid ""
244
  "WP Offload S3 Lite and WP Offload S3 cannot both be active. We've "
245
  "automatically deactivated WP Offload S3."
246
  msgstr ""
247
 
248
- #: classes/amazon-s3-and-cloudfront.php:4086
249
  msgid "More&nbsp;info&nbsp;&raquo;"
250
  msgstr ""
251
 
252
- #: classes/amazon-s3-and-cloudfront.php:4181
253
  msgid "this doc"
254
  msgstr ""
255
 
256
- #: classes/amazon-s3-and-cloudfront.php:4183
257
  msgid "WP Offload S3 Feature Removed"
258
  msgstr ""
259
 
260
- #: classes/amazon-s3-and-cloudfront.php:4184
261
  #, php-format
262
  msgid ""
263
  "You had the \"Always non-SSL\" option selected in your settings, but we've "
@@ -268,50 +268,50 @@ msgid ""
268
  "to the old behavior."
269
  msgstr ""
270
 
271
- #: classes/amazon-s3-and-cloudfront.php:4214
272
- #: classes/amazon-s3-and-cloudfront.php:4323
273
  msgid "Amazon S3"
274
  msgstr ""
275
 
276
- #: classes/amazon-s3-and-cloudfront.php:4324
277
  msgctxt "Amazon S3 bucket"
278
  msgid "Bucket"
279
  msgstr ""
280
 
281
- #: classes/amazon-s3-and-cloudfront.php:4325
282
  msgctxt "Path to file on Amazon S3"
283
  msgid "Path"
284
  msgstr ""
285
 
286
- #: classes/amazon-s3-and-cloudfront.php:4326
287
  msgctxt "Location of Amazon S3 bucket"
288
  msgid "Region"
289
  msgstr ""
290
 
291
- #: classes/amazon-s3-and-cloudfront.php:4327
292
  msgctxt "Access control list of the file on Amazon S3"
293
  msgid "Access"
294
  msgstr ""
295
 
296
- #: classes/amazon-s3-and-cloudfront.php:4328
297
  msgid "URL"
298
  msgstr ""
299
 
300
- #: classes/amazon-s3-and-cloudfront.php:4552
301
  msgid "Assets Pull"
302
  msgstr ""
303
 
304
- #: classes/amazon-s3-and-cloudfront.php:4553
305
  msgid ""
306
  "An addon for WP Offload S3 to serve your site's JS, CSS, and other enqueued "
307
  "assets from Amazon CloudFront or another CDN."
308
  msgstr ""
309
 
310
- #: classes/amazon-s3-and-cloudfront.php:4557
311
  msgid "Feature"
312
  msgstr ""
313
 
314
- #: classes/amazon-s3-and-cloudfront.php:4603
315
  #, php-format
316
  msgid ""
317
  "<strong>Amazon Web Services Plugin No Longer Required</strong> &mdash; As of "
@@ -322,7 +322,7 @@ msgid ""
322
  "should be safe to deactivate and delete it. %2$s"
323
  msgstr ""
324
 
325
- #: classes/amazon-s3-and-cloudfront.php:4635
326
  #, php-format
327
  msgid ""
328
  "<strong>WP Offload S3 Settings Moved</strong> &mdash; You now define your "
@@ -441,7 +441,7 @@ msgstr ""
441
  msgid "Invalid notice ID."
442
  msgstr ""
443
 
444
- #: classes/as3cf-plugin-base.php:470
445
  msgid "Settings"
446
  msgstr ""
447
 
8
  msgstr ""
9
  "Project-Id-Version: amazon-s3-and-cloudfront\n"
10
  "Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
11
+ "POT-Creation-Date: 2018-06-25 11:52+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"
44
  msgstr ""
45
 
46
  #: classes/amazon-s3-and-cloudfront.php:800
47
+ #: classes/amazon-s3-and-cloudfront.php:2859
48
  #: view/settings/settings.php:88
49
  msgctxt "placeholder for hidden access key, 39 char max"
50
  msgid "-- not shown --"
59
  msgstr ""
60
 
61
  #: classes/amazon-s3-and-cloudfront.php:1013
62
+ #: classes/amazon-s3-and-cloudfront.php:1145
63
  #, php-format
64
  msgid "File %s does not exist"
65
  msgstr ""
66
 
67
+ #: classes/amazon-s3-and-cloudfront.php:1026
68
  #, php-format
69
  msgid "Mime type %s is not allowed"
70
  msgstr ""
71
 
72
+ #: classes/amazon-s3-and-cloudfront.php:1109
73
+ #: classes/amazon-s3-and-cloudfront.php:1153
74
  #, php-format
75
  msgid "Error uploading %s to S3: %s"
76
  msgstr ""
77
 
78
+ #: classes/amazon-s3-and-cloudfront.php:2334
79
  msgid "This action can only be performed through an admin screen."
80
  msgstr ""
81
 
82
+ #: classes/amazon-s3-and-cloudfront.php:2336
83
  msgid "Cheatin&#8217; eh?"
84
  msgstr ""
85
 
86
+ #: classes/amazon-s3-and-cloudfront.php:2338
87
  msgid "You do not have sufficient permissions to access this page."
88
  msgstr ""
89
 
90
+ #: classes/amazon-s3-and-cloudfront.php:2356
91
  msgid "No bucket name provided."
92
  msgstr ""
93
 
94
+ #: classes/amazon-s3-and-cloudfront.php:2667
95
  msgid "Error Getting Bucket Region"
96
  msgstr ""
97
 
98
+ #: classes/amazon-s3-and-cloudfront.php:2668
99
  #, php-format
100
  msgid "There was an error attempting to get the region of the bucket %s: %s"
101
  msgstr ""
102
 
103
+ #: classes/amazon-s3-and-cloudfront.php:2781
104
  msgid ""
105
  "This is a test file to check if the user has write permission to S3. Delete "
106
  "me if found."
107
  msgstr ""
108
 
109
+ #: classes/amazon-s3-and-cloudfront.php:2787
110
  #, php-format
111
  msgid ""
112
  "There was an error attempting to check the permissions of the bucket %s: %s"
113
  msgstr ""
114
 
115
+ #: classes/amazon-s3-and-cloudfront.php:2849
116
  msgid "Error creating bucket"
117
  msgstr ""
118
 
119
+ #: classes/amazon-s3-and-cloudfront.php:2850
120
  msgid "Bucket name too short."
121
  msgstr ""
122
 
123
+ #: classes/amazon-s3-and-cloudfront.php:2851
124
  msgid "Bucket name too long."
125
  msgstr ""
126
 
127
+ #: classes/amazon-s3-and-cloudfront.php:2852
128
  msgid ""
129
  "Invalid character. Bucket names can contain lowercase letters, numbers, "
130
  "periods and hyphens."
131
  msgstr ""
132
 
133
+ #: classes/amazon-s3-and-cloudfront.php:2853
134
  msgid "Error saving bucket"
135
  msgstr ""
136
 
137
+ #: classes/amazon-s3-and-cloudfront.php:2854
138
  msgid "Error fetching buckets"
139
  msgstr ""
140
 
141
+ #: classes/amazon-s3-and-cloudfront.php:2855
142
  msgid "Error getting URL preview: "
143
  msgstr ""
144
 
145
+ #: classes/amazon-s3-and-cloudfront.php:2856
146
  msgid "The changes you made will be lost if you navigate away from this page"
147
  msgstr ""
148
 
149
+ #: classes/amazon-s3-and-cloudfront.php:2857
150
  msgid "Getting diagnostic info..."
151
  msgstr ""
152
 
153
+ #: classes/amazon-s3-and-cloudfront.php:2858
154
  msgid "Error getting diagnostic info: "
155
  msgstr ""
156
 
157
+ #: classes/amazon-s3-and-cloudfront.php:2861
158
+ #: classes/amazon-s3-and-cloudfront.php:4581
159
  msgid "Settings saved."
160
  msgstr ""
161
 
162
+ #: classes/amazon-s3-and-cloudfront.php:2932
163
  msgid "Cheatin' eh?"
164
  msgstr ""
165
 
166
+ #: classes/amazon-s3-and-cloudfront.php:2981
167
  msgctxt "Show the media library tab"
168
  msgid "Media Library"
169
  msgstr ""
170
 
171
+ #: classes/amazon-s3-and-cloudfront.php:2982
172
  msgctxt "Show the addons tab"
173
  msgid "Addons"
174
  msgstr ""
175
 
176
+ #: classes/amazon-s3-and-cloudfront.php:2983
177
  msgctxt "Show the settings tab"
178
  msgid "Settings"
179
  msgstr ""
180
 
181
+ #: classes/amazon-s3-and-cloudfront.php:2984
182
  msgctxt "Show the support tab"
183
  msgid "Support"
184
  msgstr ""
185
 
186
+ #: classes/amazon-s3-and-cloudfront.php:3228
187
  #, php-format
188
  msgid ""
189
  "<strong>WP Offload S3</strong> &mdash; The file %s has been given %s "
190
  "permissions on Amazon S3."
191
  msgstr ""
192
 
193
+ #: classes/amazon-s3-and-cloudfront.php:3247
194
  msgid ""
195
  "<strong>WP Offload S3 Requirement Missing</strong> &mdash; Looks like you "
196
  "don't have an image manipulation library installed on this server and "
198
  "Please setup GD or ImageMagick."
199
  msgstr ""
200
 
201
+ #: classes/amazon-s3-and-cloudfront.php:3861
202
  #, php-format
203
  msgid ""
204
  "<a href=\"%s\">Define your AWS keys</a> to enable write access to the bucket"
205
  msgstr ""
206
 
207
+ #: classes/amazon-s3-and-cloudfront.php:3868
208
  msgid "Quick Start Guide"
209
  msgstr ""
210
 
211
+ #: classes/amazon-s3-and-cloudfront.php:3870
212
  #, php-format
213
  msgid ""
214
  "Looks like we don't have write access to this bucket. It's likely that the "
217
  "correctly."
218
  msgstr ""
219
 
220
+ #: classes/amazon-s3-and-cloudfront.php:3872
221
  #, php-format
222
  msgid ""
223
  "Looks like we don't have access to the buckets. It's likely that the user "
225
  "Please see our %s for instructions on setting up permissions correctly."
226
  msgstr ""
227
 
228
+ #: classes/amazon-s3-and-cloudfront.php:4022
229
  msgid "WP Offload S3 Activation"
230
  msgstr ""
231
 
232
+ #: classes/amazon-s3-and-cloudfront.php:4023
233
  msgid ""
234
  "WP Offload S3 Lite and WP Offload S3 cannot both be active. We've "
235
  "automatically deactivated WP Offload S3 Lite."
236
  msgstr ""
237
 
238
+ #: classes/amazon-s3-and-cloudfront.php:4025
239
  msgid "WP Offload S3 Lite Activation"
240
  msgstr ""
241
 
242
+ #: classes/amazon-s3-and-cloudfront.php:4026
243
  msgid ""
244
  "WP Offload S3 Lite and WP Offload S3 cannot both be active. We've "
245
  "automatically deactivated WP Offload S3."
246
  msgstr ""
247
 
248
+ #: classes/amazon-s3-and-cloudfront.php:4078
249
  msgid "More&nbsp;info&nbsp;&raquo;"
250
  msgstr ""
251
 
252
+ #: classes/amazon-s3-and-cloudfront.php:4173
253
  msgid "this doc"
254
  msgstr ""
255
 
256
+ #: classes/amazon-s3-and-cloudfront.php:4175
257
  msgid "WP Offload S3 Feature Removed"
258
  msgstr ""
259
 
260
+ #: classes/amazon-s3-and-cloudfront.php:4176
261
  #, php-format
262
  msgid ""
263
  "You had the \"Always non-SSL\" option selected in your settings, but we've "
268
  "to the old behavior."
269
  msgstr ""
270
 
271
+ #: classes/amazon-s3-and-cloudfront.php:4206
272
+ #: classes/amazon-s3-and-cloudfront.php:4315
273
  msgid "Amazon S3"
274
  msgstr ""
275
 
276
+ #: classes/amazon-s3-and-cloudfront.php:4316
277
  msgctxt "Amazon S3 bucket"
278
  msgid "Bucket"
279
  msgstr ""
280
 
281
+ #: classes/amazon-s3-and-cloudfront.php:4317
282
  msgctxt "Path to file on Amazon S3"
283
  msgid "Path"
284
  msgstr ""
285
 
286
+ #: classes/amazon-s3-and-cloudfront.php:4318
287
  msgctxt "Location of Amazon S3 bucket"
288
  msgid "Region"
289
  msgstr ""
290
 
291
+ #: classes/amazon-s3-and-cloudfront.php:4319
292
  msgctxt "Access control list of the file on Amazon S3"
293
  msgid "Access"
294
  msgstr ""
295
 
296
+ #: classes/amazon-s3-and-cloudfront.php:4320
297
  msgid "URL"
298
  msgstr ""
299
 
300
+ #: classes/amazon-s3-and-cloudfront.php:4544
301
  msgid "Assets Pull"
302
  msgstr ""
303
 
304
+ #: classes/amazon-s3-and-cloudfront.php:4545
305
  msgid ""
306
  "An addon for WP Offload S3 to serve your site's JS, CSS, and other enqueued "
307
  "assets from Amazon CloudFront or another CDN."
308
  msgstr ""
309
 
310
+ #: classes/amazon-s3-and-cloudfront.php:4549
311
  msgid "Feature"
312
  msgstr ""
313
 
314
+ #: classes/amazon-s3-and-cloudfront.php:4595
315
  #, php-format
316
  msgid ""
317
  "<strong>Amazon Web Services Plugin No Longer Required</strong> &mdash; As of "
322
  "should be safe to deactivate and delete it. %2$s"
323
  msgstr ""
324
 
325
+ #: classes/amazon-s3-and-cloudfront.php:4627
326
  #, php-format
327
  msgid ""
328
  "<strong>WP Offload S3 Settings Moved</strong> &mdash; You now define your "
441
  msgid "Invalid notice ID."
442
  msgstr ""
443
 
444
+ #: classes/as3cf-plugin-base.php:482
445
  msgid "Settings"
446
  msgstr ""
447
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: uploads, amazon, s3, amazon s3, mirror, admin, media, cdn, cloudfront
4
  Requires at least: 4.6
5
  Tested up to: 4.9
6
  Requires PHP: 5.5
7
- Stable tag: 1.4
8
  License: GPLv3
9
 
10
  Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
@@ -67,6 +67,9 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
67
 
68
  == Changelog ==
69
 
 
 
 
70
  = WP Offload S3 Lite 1.4 - 2018-06-12 =
71
  * New: Using AWS PHP SDK v3
72
  * New: Requires PHP 5.5+
4
  Requires at least: 4.6
5
  Tested up to: 4.9
6
  Requires PHP: 5.5
7
+ Stable tag: 1.4.1
8
  License: GPLv3
9
 
10
  Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
67
 
68
  == Changelog ==
69
 
70
+ = WP Offload S3 Lite 1.4.1 - 2018-06-21 =
71
+ * Bug fix: Incorrect filesize saved to metadata when image removed from local server
72
+
73
  = WP Offload S3 Lite 1.4 - 2018-06-12 =
74
  * New: Using AWS PHP SDK v3
75
  * New: Requires PHP 5.5+
wordpress-s3.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Offload S3 Lite
4
  Plugin URI: http://wordpress.org/extend/plugins/amazon-s3-and-cloudfront/
5
  Description: Automatically copies media uploads to Amazon S3 for storage and delivery. Optionally configure Amazon CloudFront for even faster delivery.
6
  Author: Delicious Brains
7
- Version: 1.4
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'] = '1.4';
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 for storage and delivery. Optionally configure Amazon CloudFront for even faster delivery.
6
  Author: Delicious Brains
7
+ Version: 1.4.1
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'] = '1.4.1';
30
 
31
  require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
32