WP Offload S3 Lite - Version 1.4.3

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

Code changes from version 1.4.2 to 1.4.3

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.2
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.2 - 2018-07-03 ###
75
* Bug fix: Error getting bucket region
76
* Bug fix: Child themes with missing or broken style.css break diagnostic info
4
**Requires at least:** 4.6
5
**Tested up to:** 4.9
6
**Requires PHP:** 5.5
7
+ **Stable tag:** 1.4.3
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.3 - 2018-08-02 ###
75
+ * Bug fix: Images remotely edited via stream wrapper sometimes set as private on S3
76
+
77
### WP Offload S3 Lite 1.4.2 - 2018-07-03 ###
78
* Bug fix: Error getting bucket region
79
* Bug fix: Child themes with missing or broken style.css break diagnostic info
classes/providers/streams/aws-s3-stream-wrapper.php CHANGED
@@ -2,11 +2,29 @@
2
3
namespace DeliciousBrains\WP_Offload_S3\Providers\Streams;
4
5
use DeliciousBrains\WP_Offload_S3\Aws3\Aws\S3\StreamWrapper;
6
use DeliciousBrains\WP_Offload_S3\Providers\AWS_Provider;
7
8
class AWS_S3_Stream_Wrapper extends StreamWrapper {
9
10
/**
11
* Overrides so we don't check for stat on directories
12
*
@@ -67,7 +85,7 @@ class AWS_S3_Stream_Wrapper extends StreamWrapper {
67
$options = stream_context_get_options( $context );
68
69
// Set the ACL as public by default
70
- $options['ACL'] = AWS_Provider::DEFAULT_ACL;
71
72
$options = apply_filters( 'wpos3_stream_flush_params', $options );
73
2
3
namespace DeliciousBrains\WP_Offload_S3\Providers\Streams;
4
5
+ use DeliciousBrains\WP_Offload_S3\Aws3\Aws\CacheInterface;
6
+ use DeliciousBrains\WP_Offload_S3\Aws3\Aws\S3\S3ClientInterface;
7
use DeliciousBrains\WP_Offload_S3\Aws3\Aws\S3\StreamWrapper;
8
use DeliciousBrains\WP_Offload_S3\Providers\AWS_Provider;
9
10
class AWS_S3_Stream_Wrapper extends StreamWrapper {
11
12
+ public static $wrapper;
13
+
14
+ /**
15
+ * Register the 's3://' stream wrapper
16
+ *
17
+ * @param S3ClientInterface $client Client to use with the stream wrapper
18
+ * @param string $protocol Protocol to register as.
19
+ * @param CacheInterface $cache Default cache for the protocol.
20
+ */
21
+ public static function register( S3ClientInterface $client, $protocol = 's3', CacheInterface $cache = null ) {
22
+ // Keep a shadow copy of the protocol for use with context options.
23
+ static::$wrapper = $protocol;
24
+
25
+ parent::register( $client, $protocol, $cache );
26
+ }
27
+
28
/**
29
* Overrides so we don't check for stat on directories
30
*
85
$options = stream_context_get_options( $context );
86
87
// Set the ACL as public by default
88
+ $options[ static::$wrapper ]['ACL'] = AWS_Provider::DEFAULT_ACL;
89
90
$options = apply_filters( 'wpos3_stream_flush_params', $options );
91
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-07-03 16:30+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"
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-08-02 10:25+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"
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.2
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.2 - 2018-07-03 =
71
* Bug fix: Error getting bucket region
72
* Bug fix: Child themes with missing or broken style.css break diagnostic info
4
Requires at least: 4.6
5
Tested up to: 4.9
6
Requires PHP: 5.5
7
+ Stable tag: 1.4.3
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.3 - 2018-08-02 =
71
+ * Bug fix: Images remotely edited via stream wrapper sometimes set as private on S3
72
+
73
= WP Offload S3 Lite 1.4.2 - 2018-07-03 =
74
* Bug fix: Error getting bucket region
75
* Bug fix: Child themes with missing or broken style.css break diagnostic info
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.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'] = '1.4.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 for storage and delivery. Optionally configure Amazon CloudFront for even faster delivery.
6
Author: Delicious Brains
7
+ Version: 1.4.3
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.3';
30
31
require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';
32