WP Offload S3 Lite - Version 3.0.2

Version Description

= 2.6 = This is a major upgrade that updates the format of information stored about offloaded Media Library items. Once upgraded you will not be able to downgrade without restoring data from a backup. This version requires PHP 5.6+

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

Code changes from version 3.0.0 to 3.0.2

assets/css/attachment.css CHANGED
@@ -13,22 +13,18 @@
13
 
14
  #s3-actions.postbox .s3-details .misc-pub-section {
15
  clear: both;
16
- float: left;
17
- width: 100%;
18
  -webkit-box-sizing: border-box;
19
  box-sizing: border-box;
20
  }
21
 
22
  #s3-actions.postbox .s3-details .misc-pub-section .s3-key {
23
- float: left;
24
- width: 20%;
25
  white-space: nowrap;
26
  }
27
 
28
  #s3-actions.postbox .s3-details .misc-pub-section .s3-value {
 
29
  font-weight: bold;
30
- float: left;
31
- width: 80%;
32
  }
33
 
34
  #s3-actions.postbox .s3-details .misc-pub-section .s3-value .more-info {
13
 
14
  #s3-actions.postbox .s3-details .misc-pub-section {
15
  clear: both;
 
 
16
  -webkit-box-sizing: border-box;
17
  box-sizing: border-box;
18
  }
19
 
20
  #s3-actions.postbox .s3-details .misc-pub-section .s3-key {
21
+ display: inline-block;
 
22
  white-space: nowrap;
23
  }
24
 
25
  #s3-actions.postbox .s3-details .misc-pub-section .s3-value {
26
+ display: inline-block;
27
  font-weight: bold;
 
 
28
  }
29
 
30
  #s3-actions.postbox .s3-details .misc-pub-section .s3-value .more-info {
assets/css/attachment.min.css CHANGED
@@ -1 +1 @@
1
- #s3-actions.postbox .inside{margin:0;padding:0}#s3-actions.postbox a,#s3-actions.postbox a:hover{text-decoration:none}#s3-actions.postbox .s3-details{padding:6px 0}#s3-actions.postbox .s3-details .misc-pub-section{clear:both;float:left;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}#s3-actions.postbox .s3-details .misc-pub-section .s3-key{float:left;width:20%;white-space:nowrap}#s3-actions.postbox .s3-details .misc-pub-section .s3-value{font-weight:700;float:left;width:80%}#s3-actions.postbox .s3-details .misc-pub-section .s3-value .more-info{font-weight:lighter}#s3-actions.postbox .s3-details .misc-pub-section input.error{color:#a00}#s3-actions.postbox .s3-details .not-copied{color:#666}#s3-actions.postbox .s3-actions{padding:10px;clear:both;border-top:1px solid #ddd;border-bottom:1px solid #ddd;background:#f5f5f5}#s3-actions.postbox .s3-actions .copy-action{text-align:right;float:right;line-height:23px}#s3-actions.postbox .s3-actions .remove-action{line-height:28px;vertical-align:middle;text-align:left;float:left}#s3-actions.postbox .s3-actions .remove-action a.local-warning{color:#a00}#s3-actions.postbox .s3-actions .remove-action a.local-warning:hover{color:red}
1
+ #s3-actions.postbox .inside{margin:0;padding:0}#s3-actions.postbox a,#s3-actions.postbox a:hover{text-decoration:none}#s3-actions.postbox .s3-details{padding:6px 0}#s3-actions.postbox .s3-details .misc-pub-section{clear:both;-webkit-box-sizing:border-box;box-sizing:border-box}#s3-actions.postbox .s3-details .misc-pub-section .s3-key{display:inline-block;white-space:nowrap}#s3-actions.postbox .s3-details .misc-pub-section .s3-value{display:inline-block;font-weight:700}#s3-actions.postbox .s3-details .misc-pub-section .s3-value .more-info{font-weight:lighter}#s3-actions.postbox .s3-details .misc-pub-section input.error{color:#a00}#s3-actions.postbox .s3-details .not-copied{color:#666}#s3-actions.postbox .s3-actions{padding:10px;clear:both;border-top:1px solid #ddd;border-bottom:1px solid #ddd;background:#f5f5f5}#s3-actions.postbox .s3-actions .copy-action{text-align:right;float:right;line-height:23px}#s3-actions.postbox .s3-actions .remove-action{line-height:28px;vertical-align:middle;text-align:left;float:left}#s3-actions.postbox .s3-actions .remove-action a.local-warning{color:#a00}#s3-actions.postbox .s3-actions .remove-action a.local-warning:hover{color:red}
assets/sass/attachment.scss CHANGED
@@ -13,22 +13,18 @@
13
 
14
  .misc-pub-section {
15
  clear: both;
16
- float: left;
17
- width: 100%;
18
  -webkit-box-sizing: border-box;
19
  -moz-box-sizing: border-box;
20
  box-sizing: border-box;
21
 
22
  .s3-key {
23
- float: left;
24
- width: 20%;
25
  white-space: nowrap;
26
  }
27
 
28
  .s3-value {
 
29
  font-weight: bold;
30
- float: left;
31
- width: 80%;
32
 
33
  .more-info {
34
  font-weight: lighter;
@@ -73,4 +69,4 @@
73
  }
74
  }
75
  }
76
- }
13
 
14
  .misc-pub-section {
15
  clear: both;
 
 
16
  -webkit-box-sizing: border-box;
17
  -moz-box-sizing: border-box;
18
  box-sizing: border-box;
19
 
20
  .s3-key {
21
+ display: inline-block;
 
22
  white-space: nowrap;
23
  }
24
 
25
  .s3-value {
26
+ display: inline-block;
27
  font-weight: bold;
 
 
28
 
29
  .more-info {
30
  font-weight: lighter;
69
  }
70
  }
71
  }
72
+ }
classes/integrations/advanced-custom-fields.php CHANGED
@@ -2,8 +2,10 @@
2
 
3
  namespace DeliciousBrains\WP_Offload_Media\Integrations;
4
 
 
5
  use DeliciousBrains\WP_Offload_Media\Items\Media_Library_Item;
6
  use DeliciousBrains\WP_Offload_Media\Items\Remove_Local_Handler;
 
7
  use WP_Error;
8
 
9
  class Advanced_Custom_Fields extends Integration {
@@ -176,7 +178,13 @@ class Advanced_Custom_Fields extends Integration {
176
  * @return array
177
  */
178
  public function acf_load_config( array $config ): array {
179
- $filtered_config = unserialize( $this->as3cf->filter_local->filter_post( serialize( $config ) ) );
 
 
 
 
 
 
180
 
181
  return is_array( $filtered_config ) ? $filtered_config : $config;
182
  }
2
 
3
  namespace DeliciousBrains\WP_Offload_Media\Integrations;
4
 
5
+ use AS3CF_Error;
6
  use DeliciousBrains\WP_Offload_Media\Items\Media_Library_Item;
7
  use DeliciousBrains\WP_Offload_Media\Items\Remove_Local_Handler;
8
+ use Exception;
9
  use WP_Error;
10
 
11
  class Advanced_Custom_Fields extends Integration {
178
  * @return array
179
  */
180
  public function acf_load_config( array $config ): array {
181
+ try {
182
+ $filtered_config = unserialize( $this->as3cf->filter_local->filter_post( serialize( $config ) ) );
183
+ } catch ( Exception $e ) {
184
+ AS3CF_Error::log( __METHOD__ . ' ' . $e->getMessage() );
185
+
186
+ return $config;
187
+ }
188
 
189
  return is_array( $filtered_config ) ? $filtered_config : $config;
190
  }
languages/amazon-s3-and-cloudfront-en.pot CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "POT-Creation-Date: 2022-09-29 17:26+0000\n"
10
  "Report-Msgid-Bugs-To: mailto:nom@deliciousbrains.com\n"
11
  "X-Poedit-Basepath: ..\n"
12
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "POT-Creation-Date: 2022-10-05 13:58+0000\n"
10
  "Report-Msgid-Bugs-To: mailto:nom@deliciousbrains.com\n"
11
  "X-Poedit-Basepath: ..\n"
12
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google
4
  Requires at least: 5.3
5
  Tested up to: 6.1
6
  Requires PHP: 7.2
7
- Stable tag: 3.0.0
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.
@@ -85,6 +85,10 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin
85
 
86
  == Changelog ==
87
 
 
 
 
 
88
  = WP Offload Media Lite 3.0.0 - 2022-09-29 =
89
  * [Release Summary Blog Post](https://deliciousbrains.com/wp-offload-media-3-0-released/?utm_campaign=changelogs&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting)
90
  * New: Fresh new settings page UI! 🎉
4
  Requires at least: 5.3
5
  Tested up to: 6.1
6
  Requires PHP: 7.2
7
+ Stable tag: 3.0.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.
85
 
86
  == Changelog ==
87
 
88
+ = WP Offload Media Lite 3.0.2 - 2022-10-05 =
89
+ * Bug fix: ACF integration no longer breaks sites using closures in ACF field config (edge case)
90
+ * Bug fix: The Offload metabox for attachments no longer has issues for some browser and screen resolution combinations
91
+
92
  = WP Offload Media Lite 3.0.0 - 2022-09-29 =
93
  * [Release Summary Blog Post](https://deliciousbrains.com/wp-offload-media-3-0-released/?utm_campaign=changelogs&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting)
94
  * New: Fresh new settings page UI! 🎉
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: 3.0.0
8
  Author URI: https://deliciousbrains.com/?utm_campaign=WP%2BOffload%2BS3&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting
9
  Network: True
10
  Text Domain: amazon-s3-and-cloudfront
@@ -28,7 +28,7 @@ Domain Path: /languages/
28
 
29
  // phpcs:disable SlevomatCodingStandard.Variables.UnusedVariable
30
 
31
- $GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '3.0.0';
32
 
33
  require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
34
 
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: 3.0.2
8
  Author URI: https://deliciousbrains.com/?utm_campaign=WP%2BOffload%2BS3&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting
9
  Network: True
10
  Text Domain: amazon-s3-and-cloudfront
28
 
29
  // phpcs:disable SlevomatCodingStandard.Variables.UnusedVariable
30
 
31
+ $GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '3.0.2';
32
 
33
  require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
34