WP Offload S3 Lite - Version 2.2.1

Version Description

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

Code changes from version 2.2 to 2.2.1

README.md CHANGED
@@ -4,7 +4,7 @@
4
**Requires at least:** 4.9
5
**Tested up to:** 5.2
6
**Requires PHP:** 5.5
7
- **Stable tag:** 2.2
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.
@@ -86,6 +86,11 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
86
87
## Changelog ##
88
89
### WP Offload Media Lite 2.2 - 2019-06-10 ###
90
* [Release Summary Blog Post](https://deliciousbrains.com/wp-offload-media-2-2-released/?utm_campaign=changelogs&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting)
91
* New: Use IAM Roles without having to update wp-config.php
4
**Requires at least:** 4.9
5
**Tested up to:** 5.2
6
**Requires PHP:** 5.5
7
+ **Stable tag:** 2.2.1
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.
86
87
## Changelog ##
88
89
+ ### WP Offload Media Lite 2.2.1 - 2019-07-18 ###
90
+ * Improvement: Menu option and settings page title now include "Lite"
91
+ * Improvement: Remove Files From Server option now warns about media backups when switched on
92
+ * Bug fix: Undefined index in file amazon-s3-and-cloudfront/classes/filters/as3cf-local-to-s3.php at line 286
93
+
94
### WP Offload Media Lite 2.2 - 2019-06-10 ###
95
* [Release Summary Blog Post](https://deliciousbrains.com/wp-offload-media-2-2-released/?utm_campaign=changelogs&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting)
96
* New: Use IAM Roles without having to update wp-config.php
classes/amazon-s3-and-cloudfront.php CHANGED
@@ -133,8 +133,8 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
133
* @throws Exception
134
*/
135
function init( $plugin_file_path ) {
136
- $this->plugin_title = __( 'Offload Media', 'amazon-s3-and-cloudfront' );
137
- $this->plugin_menu_title = __( 'Offload Media', 'amazon-s3-and-cloudfront' );
138
139
static::$provider_classes = array(
140
AWS_Provider::get_provider_key_name() => 'DeliciousBrains\WP_Offload_Media\Providers\AWS_Provider',
@@ -231,9 +231,6 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
231
$provider = $this->get_core_setting( 'provider', static::$default_provider );
232
}
233
234
- if ( empty( $provider ) ) {
235
- $wibble = $provider;
236
- }
237
if ( is_string( $provider ) ) {
238
$provider = new self::$provider_classes[ $provider ]( $this );
239
}
@@ -300,6 +297,15 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
300
return apply_filters( 'as3cf_settings_page_title', $this->plugin_title );
301
}
302
303
/**
304
* Get the plugin prefix in slug format, ie. replace underscores with hyphens
305
*
@@ -2548,7 +2554,7 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
2548
$this->hook_suffix = add_submenu_page(
2549
$this->get_plugin_pagenow(),
2550
$this->get_plugin_page_title(),
2551
- $this->plugin_menu_title,
2552
'manage_options',
2553
$this->plugin_slug,
2554
array( $this, 'render_page' )
@@ -2567,7 +2573,7 @@ class Amazon_S3_And_CloudFront extends AS3CF_Plugin_Base {
2567
public function aws_admin_menu( $aws ) {
2568
$aws->add_page(
2569
$this->get_plugin_page_title(),
2570
- $this->plugin_menu_title,
2571
'manage_options',
2572
$this->plugin_slug,
2573
array( $this, 'render_page' )
133
* @throws Exception
134
*/
135
function init( $plugin_file_path ) {
136
+ $this->plugin_title = __( 'Offload Media Lite', 'amazon-s3-and-cloudfront' );
137
+ $this->plugin_menu_title = __( 'Offload Media Lite', 'amazon-s3-and-cloudfront' );
138
139
static::$provider_classes = array(
140
AWS_Provider::get_provider_key_name() => 'DeliciousBrains\WP_Offload_Media\Providers\AWS_Provider',
231
$provider = $this->get_core_setting( 'provider', static::$default_provider );
232
}
233
234
if ( is_string( $provider ) ) {
235
$provider = new self::$provider_classes[ $provider ]( $this );
236
}
297
return apply_filters( 'as3cf_settings_page_title', $this->plugin_title );
298
}
299
300
+ /**
301
+ * Get the plugin title to be used in admin menu
302
+ *
303
+ * @return string
304
+ */
305
+ function get_plugin_menu_title() {
306
+ return apply_filters( 'as3cf_settings_menu_title', $this->plugin_menu_title );
307
+ }
308
+
309
/**
310
* Get the plugin prefix in slug format, ie. replace underscores with hyphens
311
*
2554
$this->hook_suffix = add_submenu_page(
2555
$this->get_plugin_pagenow(),
2556
$this->get_plugin_page_title(),
2557
+ $this->get_plugin_menu_title(),
2558
'manage_options',
2559
$this->plugin_slug,
2560
array( $this, 'render_page' )
2573
public function aws_admin_menu( $aws ) {
2574
$aws->add_page(
2575
$this->get_plugin_page_title(),
2576
+ $this->get_plugin_menu_title(),
2577
'manage_options',
2578
$this->plugin_slug,
2579
array( $this, 'render_page' )
classes/filters/as3cf-local-to-s3.php CHANGED
@@ -274,19 +274,24 @@ class AS3CF_Local_To_S3 extends AS3CF_Filter {
274
SELECT post_id, meta_value FROM {$wpdb->postmeta}
275
WHERE meta_key = '_wp_attached_file'
276
AND meta_value IN ( " . implode( ',', array_unique( $meta_values ) ) . " )
277
";
278
279
$query_results = $wpdb->get_results( $sql );
280
281
if ( ! empty( $query_results ) ) {
282
foreach ( $query_results as $postmeta ) {
283
- $attachment_id = (int) $postmeta->post_id;
284
- $full_url = $paths[ $postmeta->meta_value ];
285
- $this->query_cache[ $full_url ] = $attachment_id;
286
- foreach ( $full_urls[ $full_url ] as $url ) {
287
- $results[ $url ] = $attachment_id;
288
}
289
- unset( $full_urls[ $full_url ] );
290
}
291
}
292
274
SELECT post_id, meta_value FROM {$wpdb->postmeta}
275
WHERE meta_key = '_wp_attached_file'
276
AND meta_value IN ( " . implode( ',', array_unique( $meta_values ) ) . " )
277
+ ORDER BY post_id
278
";
279
280
$query_results = $wpdb->get_results( $sql );
281
282
if ( ! empty( $query_results ) ) {
283
foreach ( $query_results as $postmeta ) {
284
+ $full_url = $paths[ $postmeta->meta_value ];
285
+
286
+ if ( ! empty( $full_urls[ $full_url ] ) ) {
287
+ $attachment_id = (int) $postmeta->post_id;
288
+ $this->query_cache[ $full_url ] = $attachment_id;
289
+
290
+ foreach ( $full_urls[ $full_url ] as $url ) {
291
+ $results[ $url ] = $attachment_id;
292
+ }
293
+ unset( $full_urls[ $full_url ] );
294
}
295
}
296
}
297
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: 2019-06-11 14:00+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"
@@ -19,175 +19,175 @@ msgstr ""
19
20
#: classes/amazon-s3-and-cloudfront.php:136
21
#: classes/amazon-s3-and-cloudfront.php:137
22
- msgid "Offload Media"
23
msgstr ""
24
25
- #: classes/amazon-s3-and-cloudfront.php:277
26
- #: classes/amazon-s3-and-cloudfront.php:291
27
msgid "Unknown"
28
msgstr ""
29
30
- #: classes/amazon-s3-and-cloudfront.php:345
31
#: view/bucket-setting.php:17
32
#: view/provider-select.php:122
33
msgid "defined in wp-config.php"
34
msgstr ""
35
36
- #: classes/amazon-s3-and-cloudfront.php:1091
37
- #: classes/amazon-s3-and-cloudfront.php:1225
38
#, php-format
39
msgid "File %s does not exist"
40
msgstr ""
41
42
- #: classes/amazon-s3-and-cloudfront.php:1104
43
#, php-format
44
msgid "Mime type %s is not allowed"
45
msgstr ""
46
47
- #: classes/amazon-s3-and-cloudfront.php:1115
48
msgid "Already offloaded to a different provider"
49
msgstr ""
50
51
- #: classes/amazon-s3-and-cloudfront.php:1189
52
- #: classes/amazon-s3-and-cloudfront.php:1233
53
#, php-format
54
msgid "Error offloading %s to provider: %s"
55
msgstr ""
56
57
- #: classes/amazon-s3-and-cloudfront.php:2375
58
msgid "This action can only be performed through an admin screen."
59
msgstr ""
60
61
- #: classes/amazon-s3-and-cloudfront.php:2377
62
msgid "Cheatin&#8217; eh?"
63
msgstr ""
64
65
- #: classes/amazon-s3-and-cloudfront.php:2379
66
msgid "You do not have sufficient permissions to access this page."
67
msgstr ""
68
69
- #: classes/amazon-s3-and-cloudfront.php:2659
70
msgid "Error Getting Bucket Region"
71
msgstr ""
72
73
- #: classes/amazon-s3-and-cloudfront.php:2660
74
#, php-format
75
msgid "There was an error attempting to get the region of the bucket %s: %s"
76
msgstr ""
77
78
- #: classes/amazon-s3-and-cloudfront.php:2791
79
msgid ""
80
"This is a test file to check if the user has write permission to the bucket. "
81
"Delete me if found."
82
msgstr ""
83
84
- #: classes/amazon-s3-and-cloudfront.php:2797
85
#, php-format
86
msgid ""
87
"There was an error attempting to check the permissions of the bucket %s: %s"
88
msgstr ""
89
90
- #: classes/amazon-s3-and-cloudfront.php:2879
91
msgid "Error creating bucket"
92
msgstr ""
93
94
- #: classes/amazon-s3-and-cloudfront.php:2880
95
msgid "Bucket name too short."
96
msgstr ""
97
98
- #: classes/amazon-s3-and-cloudfront.php:2881
99
msgid "Bucket name too long."
100
msgstr ""
101
102
- #: classes/amazon-s3-and-cloudfront.php:2882
103
msgid ""
104
"Invalid character. Bucket names can contain lowercase letters, numbers, "
105
"periods and hyphens."
106
msgstr ""
107
108
- #: classes/amazon-s3-and-cloudfront.php:2883
109
msgid "Error saving bucket"
110
msgstr ""
111
112
- #: classes/amazon-s3-and-cloudfront.php:2884
113
msgid "Error fetching buckets"
114
msgstr ""
115
116
- #: classes/amazon-s3-and-cloudfront.php:2885
117
msgid "Error getting URL preview: "
118
msgstr ""
119
120
- #: classes/amazon-s3-and-cloudfront.php:2886
121
msgid "The changes you made will be lost if you navigate away from this page"
122
msgstr ""
123
124
- #: classes/amazon-s3-and-cloudfront.php:2887
125
msgid "Getting diagnostic info..."
126
msgstr ""
127
128
- #: classes/amazon-s3-and-cloudfront.php:2888
129
msgid "Error getting diagnostic info: "
130
msgstr ""
131
132
- #: classes/amazon-s3-and-cloudfront.php:2889
133
msgctxt "placeholder for hidden access key, 39 char max"
134
msgid "-- not shown --"
135
msgstr ""
136
137
- #: classes/amazon-s3-and-cloudfront.php:2891
138
- #: classes/amazon-s3-and-cloudfront.php:4928
139
msgid "Settings saved."
140
msgstr ""
141
142
- #: classes/amazon-s3-and-cloudfront.php:2981
143
msgid "Cheatin' eh?"
144
msgstr ""
145
146
- #: classes/amazon-s3-and-cloudfront.php:3065
147
msgid "No bucket name provided."
148
msgstr ""
149
150
- #: classes/amazon-s3-and-cloudfront.php:3074
151
msgid "Bucket name not valid."
152
msgstr ""
153
154
- #: classes/amazon-s3-and-cloudfront.php:3087
155
msgid "No region provided."
156
msgstr ""
157
158
- #: classes/amazon-s3-and-cloudfront.php:3164
159
#: view/provider-select.php:329
160
msgctxt "placeholder for hidden secret access key, 39 char max"
161
msgid "-- not shown --"
162
msgstr ""
163
164
- #: classes/amazon-s3-and-cloudfront.php:3187
165
msgid "Key File not valid JSON."
166
msgstr ""
167
168
- #: classes/amazon-s3-and-cloudfront.php:3233
169
msgctxt "Show the media library tab"
170
msgid "Media Library"
171
msgstr ""
172
173
- #: classes/amazon-s3-and-cloudfront.php:3234
174
msgctxt "Show the addons tab"
175
msgid "Addons"
176
msgstr ""
177
178
- #: classes/amazon-s3-and-cloudfront.php:3235
179
msgctxt "Show the support tab"
180
msgid "Support"
181
msgstr ""
182
183
- #: classes/amazon-s3-and-cloudfront.php:3455
184
#, php-format
185
msgid ""
186
"<strong>WP Offload Media</strong> &mdash; The file %s has been given %s "
187
"permissions in the bucket."
188
msgstr ""
189
190
- #: classes/amazon-s3-and-cloudfront.php:3474
191
msgid ""
192
"<strong>WP Offload Media Requirement Missing</strong> &mdash; Looks like you "
193
"don't have an image manipulation library installed on this server and "
@@ -195,18 +195,18 @@ msgid ""
195
"Please setup GD or ImageMagick."
196
msgstr ""
197
198
- #: classes/amazon-s3-and-cloudfront.php:4187
199
#, php-format
200
msgid ""
201
"<a href=\"%s\">Define your access keys</a> to enable write access to the "
202
"bucket"
203
msgstr ""
204
205
- #: classes/amazon-s3-and-cloudfront.php:4194
206
msgid "Quick Start Guide"
207
msgstr ""
208
209
- #: classes/amazon-s3-and-cloudfront.php:4196
210
#, php-format
211
msgid ""
212
"Looks like we don't have write access to this bucket. It's likely that the "
@@ -215,7 +215,7 @@ msgid ""
215
"correctly."
216
msgstr ""
217
218
- #: classes/amazon-s3-and-cloudfront.php:4198
219
#, php-format
220
msgid ""
221
"Looks like we don't have access to the buckets. It's likely that the user "
@@ -223,39 +223,39 @@ msgid ""
223
"Please see our %s for instructions on setting up permissions correctly."
224
msgstr ""
225
226
- #: classes/amazon-s3-and-cloudfront.php:4369
227
msgid "WP Offload Media Activation"
228
msgstr ""
229
230
- #: classes/amazon-s3-and-cloudfront.php:4370
231
msgid ""
232
"WP Offload Media Lite and WP Offload Media cannot both be active. We've "
233
"automatically deactivated WP Offload Media Lite."
234
msgstr ""
235
236
- #: classes/amazon-s3-and-cloudfront.php:4372
237
msgid "WP Offload Media Lite Activation"
238
msgstr ""
239
240
- #: classes/amazon-s3-and-cloudfront.php:4373
241
msgid ""
242
"WP Offload Media Lite and WP Offload Media cannot both be active. We've "
243
"automatically deactivated WP Offload Media."
244
msgstr ""
245
246
- #: classes/amazon-s3-and-cloudfront.php:4425
247
msgid "More&nbsp;info&nbsp;&raquo;"
248
msgstr ""
249
250
- #: classes/amazon-s3-and-cloudfront.php:4520
251
msgid "this doc"
252
msgstr ""
253
254
- #: classes/amazon-s3-and-cloudfront.php:4522
255
msgid "WP Offload Media Feature Removed"
256
msgstr ""
257
258
- #: classes/amazon-s3-and-cloudfront.php:4523
259
#, php-format
260
msgid ""
261
"You had the \"Always non-SSL\" option selected in your settings, but we've "
@@ -266,59 +266,59 @@ msgid ""
266
"to the old behavior."
267
msgstr ""
268
269
- #: classes/amazon-s3-and-cloudfront.php:4553
270
msgid "Offload"
271
msgstr ""
272
273
- #: classes/amazon-s3-and-cloudfront.php:4661
274
msgctxt "Storage provider key name"
275
msgid "Storage Provider"
276
msgstr ""
277
278
- #: classes/amazon-s3-and-cloudfront.php:4662
279
msgctxt "Storage provider name"
280
msgid "Storage Provider"
281
msgstr ""
282
283
- #: classes/amazon-s3-and-cloudfront.php:4663
284
msgctxt "Bucket name"
285
msgid "Bucket"
286
msgstr ""
287
288
- #: classes/amazon-s3-and-cloudfront.php:4664
289
msgctxt "Path to file in bucket"
290
msgid "Path"
291
msgstr ""
292
293
- #: classes/amazon-s3-and-cloudfront.php:4665
294
msgctxt "Location of bucket"
295
msgid "Region"
296
msgstr ""
297
298
- #: classes/amazon-s3-and-cloudfront.php:4666
299
msgctxt "Access control list of the file in bucket"
300
msgid "Access"
301
msgstr ""
302
303
- #: classes/amazon-s3-and-cloudfront.php:4667
304
msgid "URL"
305
msgstr ""
306
307
- #: classes/amazon-s3-and-cloudfront.php:4891
308
msgid "Assets Pull"
309
msgstr ""
310
311
- #: classes/amazon-s3-and-cloudfront.php:4892
312
msgid ""
313
"An addon for WP Offload Media to serve your site's JS, CSS, and other "
314
"enqueued assets from Amazon CloudFront or another CDN."
315
msgstr ""
316
317
- #: classes/amazon-s3-and-cloudfront.php:4896
318
msgid "Feature"
319
msgstr ""
320
321
- #: classes/amazon-s3-and-cloudfront.php:4942
322
#, php-format
323
msgid ""
324
"<strong>Amazon Web Services Plugin No Longer Required</strong> &mdash; As of "
@@ -329,7 +329,7 @@ msgid ""
329
"plugin, it should be safe to deactivate and delete it. %2$s"
330
msgstr ""
331
332
- #: classes/amazon-s3-and-cloudfront.php:4974
333
#, php-format
334
msgid ""
335
"<strong>WP Offload Media Settings Moved</strong> &mdash; You now define your "
@@ -951,7 +951,7 @@ msgid "Next"
951
msgstr ""
952
953
#: view/provider-select.php:373
954
- #: view/settings/media.php:261
955
msgid "Save Changes"
956
msgstr ""
957
@@ -1067,7 +1067,14 @@ msgid ""
1067
"present on the local server and may not work when the file is removed. %s"
1068
msgstr ""
1069
1070
- #: view/settings/media.php:273
1071
#, php-format
1072
msgid ""
1073
"Need help getting your Access Keys? <a href=\"%s\">Check out the Quick Start "
8
msgstr ""
9
"Project-Id-Version: amazon-s3-and-cloudfront\n"
10
"Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
11
+ "POT-Creation-Date: 2019-07-18 14:13+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"
19
20
#: classes/amazon-s3-and-cloudfront.php:136
21
#: classes/amazon-s3-and-cloudfront.php:137
22
+ msgid "Offload Media Lite"
23
msgstr ""
24
25
+ #: classes/amazon-s3-and-cloudfront.php:274
26
+ #: classes/amazon-s3-and-cloudfront.php:288
27
msgid "Unknown"
28
msgstr ""
29
30
+ #: classes/amazon-s3-and-cloudfront.php:351
31
#: view/bucket-setting.php:17
32
#: view/provider-select.php:122
33
msgid "defined in wp-config.php"
34
msgstr ""
35
36
+ #: classes/amazon-s3-and-cloudfront.php:1097
37
+ #: classes/amazon-s3-and-cloudfront.php:1231
38
#, php-format
39
msgid "File %s does not exist"
40
msgstr ""
41
42
+ #: classes/amazon-s3-and-cloudfront.php:1110
43
#, php-format
44
msgid "Mime type %s is not allowed"
45
msgstr ""
46
47
+ #: classes/amazon-s3-and-cloudfront.php:1121
48
msgid "Already offloaded to a different provider"
49
msgstr ""
50
51
+ #: classes/amazon-s3-and-cloudfront.php:1195
52
+ #: classes/amazon-s3-and-cloudfront.php:1239
53
#, php-format
54
msgid "Error offloading %s to provider: %s"
55
msgstr ""
56
57
+ #: classes/amazon-s3-and-cloudfront.php:2381
58
msgid "This action can only be performed through an admin screen."
59
msgstr ""
60
61
+ #: classes/amazon-s3-and-cloudfront.php:2383
62
msgid "Cheatin&#8217; eh?"
63
msgstr ""
64
65
+ #: classes/amazon-s3-and-cloudfront.php:2385
66
msgid "You do not have sufficient permissions to access this page."
67
msgstr ""
68
69
+ #: classes/amazon-s3-and-cloudfront.php:2665
70
msgid "Error Getting Bucket Region"
71
msgstr ""
72
73
+ #: classes/amazon-s3-and-cloudfront.php:2666
74
#, php-format
75
msgid "There was an error attempting to get the region of the bucket %s: %s"
76
msgstr ""
77
78
+ #: classes/amazon-s3-and-cloudfront.php:2797
79
msgid ""
80
"This is a test file to check if the user has write permission to the bucket. "
81
"Delete me if found."
82
msgstr ""
83
84
+ #: classes/amazon-s3-and-cloudfront.php:2803
85
#, php-format
86
msgid ""
87
"There was an error attempting to check the permissions of the bucket %s: %s"
88
msgstr ""
89
90
+ #: classes/amazon-s3-and-cloudfront.php:2885
91
msgid "Error creating bucket"
92
msgstr ""
93
94
+ #: classes/amazon-s3-and-cloudfront.php:2886
95
msgid "Bucket name too short."
96
msgstr ""
97
98
+ #: classes/amazon-s3-and-cloudfront.php:2887
99
msgid "Bucket name too long."
100
msgstr ""
101
102
+ #: classes/amazon-s3-and-cloudfront.php:2888
103
msgid ""
104
"Invalid character. Bucket names can contain lowercase letters, numbers, "
105
"periods and hyphens."
106
msgstr ""
107
108
+ #: classes/amazon-s3-and-cloudfront.php:2889
109
msgid "Error saving bucket"
110
msgstr ""
111
112
+ #: classes/amazon-s3-and-cloudfront.php:2890
113
msgid "Error fetching buckets"
114
msgstr ""
115
116
+ #: classes/amazon-s3-and-cloudfront.php:2891
117
msgid "Error getting URL preview: "
118
msgstr ""
119
120
+ #: classes/amazon-s3-and-cloudfront.php:2892
121
msgid "The changes you made will be lost if you navigate away from this page"
122
msgstr ""
123
124
+ #: classes/amazon-s3-and-cloudfront.php:2893
125
msgid "Getting diagnostic info..."
126
msgstr ""
127
128
+ #: classes/amazon-s3-and-cloudfront.php:2894
129
msgid "Error getting diagnostic info: "
130
msgstr ""
131
132
+ #: classes/amazon-s3-and-cloudfront.php:2895
133
msgctxt "placeholder for hidden access key, 39 char max"
134
msgid "-- not shown --"
135
msgstr ""
136
137
+ #: classes/amazon-s3-and-cloudfront.php:2897
138
+ #: classes/amazon-s3-and-cloudfront.php:4934
139
msgid "Settings saved."
140
msgstr ""
141
142
+ #: classes/amazon-s3-and-cloudfront.php:2987
143
msgid "Cheatin' eh?"
144
msgstr ""
145
146
+ #: classes/amazon-s3-and-cloudfront.php:3071
147
msgid "No bucket name provided."
148
msgstr ""
149
150
+ #: classes/amazon-s3-and-cloudfront.php:3080
151
msgid "Bucket name not valid."
152
msgstr ""
153
154
+ #: classes/amazon-s3-and-cloudfront.php:3093
155
msgid "No region provided."
156
msgstr ""
157
158
+ #: classes/amazon-s3-and-cloudfront.php:3170
159
#: view/provider-select.php:329
160
msgctxt "placeholder for hidden secret access key, 39 char max"
161
msgid "-- not shown --"
162
msgstr ""
163
164
+ #: classes/amazon-s3-and-cloudfront.php:3193
165
msgid "Key File not valid JSON."
166
msgstr ""
167
168
+ #: classes/amazon-s3-and-cloudfront.php:3239
169
msgctxt "Show the media library tab"
170
msgid "Media Library"
171
msgstr ""
172
173
+ #: classes/amazon-s3-and-cloudfront.php:3240
174
msgctxt "Show the addons tab"
175
msgid "Addons"
176
msgstr ""
177
178
+ #: classes/amazon-s3-and-cloudfront.php:3241
179
msgctxt "Show the support tab"
180
msgid "Support"
181
msgstr ""
182
183
+ #: classes/amazon-s3-and-cloudfront.php:3461
184
#, php-format
185
msgid ""
186
"<strong>WP Offload Media</strong> &mdash; The file %s has been given %s "
187
"permissions in the bucket."
188
msgstr ""
189
190
+ #: classes/amazon-s3-and-cloudfront.php:3480
191
msgid ""
192
"<strong>WP Offload Media Requirement Missing</strong> &mdash; Looks like you "
193
"don't have an image manipulation library installed on this server and "
195
"Please setup GD or ImageMagick."
196
msgstr ""
197
198
+ #: classes/amazon-s3-and-cloudfront.php:4193
199
#, php-format
200
msgid ""
201
"<a href=\"%s\">Define your access keys</a> to enable write access to the "
202
"bucket"
203
msgstr ""
204
205
+ #: classes/amazon-s3-and-cloudfront.php:4200
206
msgid "Quick Start Guide"
207
msgstr ""
208
209
+ #: classes/amazon-s3-and-cloudfront.php:4202
210
#, php-format
211
msgid ""
212
"Looks like we don't have write access to this bucket. It's likely that the "
215
"correctly."
216
msgstr ""
217
218
+ #: classes/amazon-s3-and-cloudfront.php:4204
219
#, php-format
220
msgid ""
221
"Looks like we don't have access to the buckets. It's likely that the user "
223
"Please see our %s for instructions on setting up permissions correctly."
224
msgstr ""
225
226
+ #: classes/amazon-s3-and-cloudfront.php:4375
227
msgid "WP Offload Media Activation"
228
msgstr ""
229
230
+ #: classes/amazon-s3-and-cloudfront.php:4376
231
msgid ""
232
"WP Offload Media Lite and WP Offload Media cannot both be active. We've "
233
"automatically deactivated WP Offload Media Lite."
234
msgstr ""
235
236
+ #: classes/amazon-s3-and-cloudfront.php:4378
237
msgid "WP Offload Media Lite Activation"
238
msgstr ""
239
240
+ #: classes/amazon-s3-and-cloudfront.php:4379
241
msgid ""
242
"WP Offload Media Lite and WP Offload Media cannot both be active. We've "
243
"automatically deactivated WP Offload Media."
244
msgstr ""
245
246
+ #: classes/amazon-s3-and-cloudfront.php:4431
247
msgid "More&nbsp;info&nbsp;&raquo;"
248
msgstr ""
249
250
+ #: classes/amazon-s3-and-cloudfront.php:4526
251
msgid "this doc"
252
msgstr ""
253
254
+ #: classes/amazon-s3-and-cloudfront.php:4528
255
msgid "WP Offload Media Feature Removed"
256
msgstr ""
257
258
+ #: classes/amazon-s3-and-cloudfront.php:4529
259
#, php-format
260
msgid ""
261
"You had the \"Always non-SSL\" option selected in your settings, but we've "
266
"to the old behavior."
267
msgstr ""
268
269
+ #: classes/amazon-s3-and-cloudfront.php:4559
270
msgid "Offload"
271
msgstr ""
272
273
+ #: classes/amazon-s3-and-cloudfront.php:4667
274
msgctxt "Storage provider key name"
275
msgid "Storage Provider"
276
msgstr ""
277
278
+ #: classes/amazon-s3-and-cloudfront.php:4668
279
msgctxt "Storage provider name"
280
msgid "Storage Provider"
281
msgstr ""
282
283
+ #: classes/amazon-s3-and-cloudfront.php:4669
284
msgctxt "Bucket name"
285
msgid "Bucket"
286
msgstr ""
287
288
+ #: classes/amazon-s3-and-cloudfront.php:4670
289
msgctxt "Path to file in bucket"
290
msgid "Path"
291
msgstr ""
292
293
+ #: classes/amazon-s3-and-cloudfront.php:4671
294
msgctxt "Location of bucket"
295
msgid "Region"
296
msgstr ""
297
298
+ #: classes/amazon-s3-and-cloudfront.php:4672
299
msgctxt "Access control list of the file in bucket"
300
msgid "Access"
301
msgstr ""
302
303
+ #: classes/amazon-s3-and-cloudfront.php:4673
304
msgid "URL"
305
msgstr ""
306
307
+ #: classes/amazon-s3-and-cloudfront.php:4897
308
msgid "Assets Pull"
309
msgstr ""
310
311
+ #: classes/amazon-s3-and-cloudfront.php:4898
312
msgid ""
313
"An addon for WP Offload Media to serve your site's JS, CSS, and other "
314
"enqueued assets from Amazon CloudFront or another CDN."
315
msgstr ""
316
317
+ #: classes/amazon-s3-and-cloudfront.php:4902
318
msgid "Feature"
319
msgstr ""
320
321
+ #: classes/amazon-s3-and-cloudfront.php:4948
322
#, php-format
323
msgid ""
324
"<strong>Amazon Web Services Plugin No Longer Required</strong> &mdash; As of "
329
"plugin, it should be safe to deactivate and delete it. %2$s"
330
msgstr ""
331
332
+ #: classes/amazon-s3-and-cloudfront.php:4980
333
#, php-format
334
msgid ""
335
"<strong>WP Offload Media Settings Moved</strong> &mdash; You now define your "
951
msgstr ""
952
953
#: view/provider-select.php:373
954
+ #: view/settings/media.php:264
955
msgid "Save Changes"
956
msgstr ""
957
1067
"present on the local server and may not work when the file is removed. %s"
1068
msgstr ""
1069
1070
+ #: view/settings/media.php:248
1071
+ msgid ""
1072
+ "If you have a backup system in place (as you should) that backs up your site "
1073
+ "files, media, and database, your media will no longer be backed up as it "
1074
+ "will no longer be present on the filesystem."
1075
+ msgstr ""
1076
+
1077
+ #: view/settings/media.php:276
1078
#, php-format
1079
msgid ""
1080
"Need help getting your Access Keys? <a href=\"%s\">Check out the Quick Start "
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google
4
Requires at least: 4.9
5
Tested up to: 5.2
6
Requires PHP: 5.5
7
- Stable tag: 2.2
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.
@@ -78,6 +78,11 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
78
79
== Changelog ==
80
81
= WP Offload Media Lite 2.2 - 2019-06-10 =
82
* [Release Summary Blog Post](https://deliciousbrains.com/wp-offload-media-2-2-released/?utm_campaign=changelogs&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting)
83
* New: Use IAM Roles without having to update wp-config.php
4
Requires at least: 4.9
5
Tested up to: 5.2
6
Requires PHP: 5.5
7
+ Stable tag: 2.2.1
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.
78
79
== Changelog ==
80
81
+ = WP Offload Media Lite 2.2.1 - 2019-07-18 =
82
+ * Improvement: Menu option and settings page title now include "Lite"
83
+ * Improvement: Remove Files From Server option now warns about media backups when switched on
84
+ * Bug fix: Undefined index in file amazon-s3-and-cloudfront/classes/filters/as3cf-local-to-s3.php at line 286
85
+
86
= WP Offload Media Lite 2.2 - 2019-06-10 =
87
* [Release Summary Blog Post](https://deliciousbrains.com/wp-offload-media-2-2-released/?utm_campaign=changelogs&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting)
88
* New: Use IAM Roles without having to update wp-config.php
view/settings/media.php CHANGED
@@ -243,7 +243,10 @@ $storage_classes = apply_filters( 'as3cf_media_tab_storage_classes', $storage_cl
243
$this->render_view( 'notice', $lost_files_args );
244
245
$remove_local_link = $this->more_info_link( '/wp-offload-media/doc/compatibility-with-other-plugins/', 'error-media+remove+files+from+server' );
246
- $remove_local_msg = apply_filters( 'as3cf_remove_local_notice', sprintf( __( '<strong>Warning</strong> &mdash; Some plugins depend on the file being present on the local server and may not work when the file is removed. %s', 'amazon-s3-and-cloudfront' ), $remove_local_link ) );
247
$remove_local_args = array(
248
'message' => $remove_local_msg,
249
'id' => 'as3cf-remove-local-notice',
243
$this->render_view( 'notice', $lost_files_args );
244
245
$remove_local_link = $this->more_info_link( '/wp-offload-media/doc/compatibility-with-other-plugins/', 'error-media+remove+files+from+server' );
246
+ $remove_local_msg = sprintf( __( '<strong>Warning</strong> &mdash; Some plugins depend on the file being present on the local server and may not work when the file is removed. %s', 'amazon-s3-and-cloudfront' ), $remove_local_link );
247
+ $remove_local_msg .= "<br/><br />";
248
+ $remove_local_msg .= __( 'If you have a backup system in place (as you should) that backs up your site files, media, and database, your media will no longer be backed up as it will no longer be present on the filesystem.', 'amazon-s3-and-cloudfront' );
249
+ $remove_local_msg = apply_filters( 'as3cf_remove_local_notice', $remove_local_msg );
250
$remove_local_args = array(
251
'message' => $remove_local_msg,
252
'id' => 'as3cf-remove-local-notice',
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.2
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.2';
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.2.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'] = '2.2.1';
30
31
require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
32