Skip to content

Commit

Permalink
Deploying version 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Mar 13, 2017
1 parent f920838 commit e69b024
Show file tree
Hide file tree
Showing 18 changed files with 440 additions and 183 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
**Contributors:** bradt, deliciousbrains
**Tags:** uploads, amazon, s3, amazon s3, mirror, admin, media, cdn, cloudfront
**Requires at least:** 4.4
**Tested up to:** 4.7.1
**Stable tag:** 1.1.5
**Tested up to:** 4.7.3
**Stable tag:** 1.1.6
**License:** GPLv3

Copies files to Amazon S3 as they are uploaded to the Media Library. Optionally configure Amazon CloudFront for faster delivery.
Expand Down Expand Up @@ -69,6 +69,17 @@ This version requires PHP 5.3.3+ and the Amazon Web Services plugin

## Changelog ##

### WP Offload S3 Lite 1.1.6 - 2017-03-13 ###
* New: Compatibility with [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
* New: `as3cf_filter_post_local_to_s3` and `as3cf_filter_post_s3_to_local` filters added for filtering S3 URLs in custom content
* Improvement: Ensure files uploaded using `media_handle_sideload` have unique filename on S3 when 'Remove Files From Server' enabled
* Bug fix: Files uploaded to S3 with empty filenames when the filename started with non-latin characters
* Bug fix: Audio files with private ACL not working with WordPress's default media player
* Bug fix: S3 API version not passed to S3 client
* Bug fix: Content added to text widgets via the Customizer not saved
* Bug fix: Original file not removed locally when cropped via the Customizer and 'Remove Files From Server' enabled
* Bug fix: Incorrect Media Library URLs saved to the database when WordPress installed in a subdirectory

### WP Offload S3 Lite 1.1.5 - 2017-01-12 ###
* Improvement: Filter custom CSS - S3 URLs will no longer be saved to the database
* Bug fix: PDF previews have incorrect MIME type
Expand Down
5 changes: 4 additions & 1 deletion assets/js/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,15 @@ var test = {};
},

updateACL: function( response ) {
if ( 'undefined' === typeof response.acl_display || 'undefined' === typeof response.title || 'undefined' === typeof response.acl ) {
if ( null == response.acl_display || null == response.title || null == response.acl || null == response.url ) {
this.renderACLError();

return;
}

this.model.set( 'url', response.url );
this.render();

var toggle = $( '#as3cfpro-toggle-acl' );

$( '#as3cfpro-updating' ).remove();
Expand Down
2 changes: 1 addition & 1 deletion assets/js/media.min.js

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

23 changes: 19 additions & 4 deletions assets/js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var as3cfModal = (function( $ ) {

var modal = {
prefix: 'as3cf',
loading: false
loading: false,
dismissible: true
};

var modals = {};
Expand Down Expand Up @@ -54,7 +55,12 @@ var as3cfModal = (function( $ ) {
var $overlay = $( '#as3cf-overlay' );

// Modal container
$overlay.append( '<div id="as3cf-modal"><span class="close-as3cf-modal">×</span></div>' );
if ( modal.dismissible ) {
$overlay.append( '<div id="as3cf-modal"><span class="close-as3cf-modal">×</span></div>' );
} else {
$overlay.append( '<div id="as3cf-modal"></div>' );
}

var $modal = $( '#as3cf-modal' );

if ( undefined === modals[ key ] ) {
Expand Down Expand Up @@ -88,7 +94,7 @@ var as3cfModal = (function( $ ) {
* @param {function} callback
*/
modal.close = function( callback ) {
if ( modal.loading ) {
if ( modal.loading || ! modal.dismissible ) {
return;
}

Expand All @@ -110,12 +116,21 @@ var as3cfModal = (function( $ ) {
/**
* Set loading state
*
* @param {bool} state
* @param {boolean} state
*/
modal.setLoadingState = function( state ) {
modal.loading = state;
};

/**
* Set dismissible state.
*
* @param {boolean} state
*/
modal.setDismissibleState = function( state ) {
modal.dismissible = state;
};

// Setup click handlers
$( document ).ready( function() {

Expand Down
2 changes: 1 addition & 1 deletion assets/js/modal.min.js

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

Loading

0 comments on commit e69b024

Please sign in to comment.