Skip to content

Commit

Permalink
Deploying version 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmjones committed Oct 5, 2022
1 parent 87b04c4 commit 95a3183
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
8 changes: 2 additions & 6 deletions assets/css/attachment.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@

#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%;
display: inline-block;
white-space: nowrap;
}

#s3-actions.postbox .s3-details .misc-pub-section .s3-value {
display: inline-block;
font-weight: bold;
float: left;
width: 80%;
}

#s3-actions.postbox .s3-details .misc-pub-section .s3-value .more-info {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/attachment.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions assets/sass/attachment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@

.misc-pub-section {
clear: both;
float: left;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;

.s3-key {
float: left;
width: 20%;
display: inline-block;
white-space: nowrap;
}

.s3-value {
display: inline-block;
font-weight: bold;
float: left;
width: 80%;

.more-info {
font-weight: lighter;
Expand Down Expand Up @@ -73,4 +69,4 @@
}
}
}
}
}
10 changes: 9 additions & 1 deletion classes/integrations/advanced-custom-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

namespace DeliciousBrains\WP_Offload_Media\Integrations;

use AS3CF_Error;
use DeliciousBrains\WP_Offload_Media\Items\Media_Library_Item;
use DeliciousBrains\WP_Offload_Media\Items\Remove_Local_Handler;
use Exception;
use WP_Error;

class Advanced_Custom_Fields extends Integration {
Expand Down Expand Up @@ -176,7 +178,13 @@ public function maybe_remove_original_after_download() {
* @return array
*/
public function acf_load_config( array $config ): array {
$filtered_config = unserialize( $this->as3cf->filter_local->filter_post( serialize( $config ) ) );
try {
$filtered_config = unserialize( $this->as3cf->filter_local->filter_post( serialize( $config ) ) );
} catch ( Exception $e ) {
AS3CF_Error::log( __METHOD__ . ' ' . $e->getMessage() );

return $config;
}

return is_array( $filtered_config ) ? $filtered_config : $config;
}
Expand Down
2 changes: 1 addition & 1 deletion languages/amazon-s3-and-cloudfront-en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-09-29 16:30+0000\n"
"POT-Creation-Date: 2022-10-05 13:58+0000\n"
"Report-Msgid-Bugs-To: mailto:nom@deliciousbrains.com\n"
"X-Poedit-Basepath: ..\n"
"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"
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: uploads, amazon, s3, amazon s3, digitalocean, digitalocean spaces, google
Requires at least: 5.3
Tested up to: 6.1
Requires PHP: 7.2
Stable tag: 3.0.0
Stable tag: 3.0.2
License: GPLv3

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.
Expand Down Expand Up @@ -85,6 +85,10 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin

== Changelog ==

= WP Offload Media Lite 3.0.2 - 2022-10-05 =
* Bug fix: ACF integration no longer breaks sites using closures in ACF field config (edge case)
* Bug fix: The Offload metabox for attachments no longer has issues for some browser and screen resolution combinations

= WP Offload Media Lite 3.0.0 - 2022-09-29 =
* [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)
* New: Fresh new settings page UI! 🎉
Expand Down
4 changes: 2 additions & 2 deletions wordpress-s3.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://wordpress.org/extend/plugins/amazon-s3-and-cloudfront/
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.
Author: Delicious Brains
Version: 3.0.0
Version: 3.0.2
Author URI: https://deliciousbrains.com/?utm_campaign=WP%2BOffload%2BS3&utm_source=wordpress.org&utm_medium=free%2Bplugin%2Blisting
Network: True
Text Domain: amazon-s3-and-cloudfront
Expand All @@ -28,7 +28,7 @@

// phpcs:disable SlevomatCodingStandard.Variables.UnusedVariable

$GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '3.0.0';
$GLOBALS['aws_meta']['amazon-s3-and-cloudfront']['version'] = '3.0.2';

require_once dirname( __FILE__ ) . '/classes/as3cf-compatibility-check.php';

Expand Down

0 comments on commit 95a3183

Please sign in to comment.