Skip to content

Commit

Permalink
Merge pull request #1604 from rtMediaWP/develop
Browse files Browse the repository at this point in the history
Version update v4.6.1
  • Loading branch information
thrijith authored Apr 8, 2020
2 parents cb20733 + 74d5145 commit d5f8667
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ https://www.youtube.com/watch?v=dJrykKQGDcs

## Changelog ##

### 4.6.1 [April 8, 2020] ###
### 4.6.1 [April 9, 2020] ###

* Enhancement
* Disable the terms of service checkbox when the activity is published
Expand Down
10 changes: 7 additions & 3 deletions app/assets/js/rtm-upload-terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ if ( 'object' === typeof rtMediaHook ) {
* @return {boolean}
*/
rtMediaHook.register( 'rtmedia_js_before_upload', function ( args ) {
if ( false === args || 'undefined' === typeof args.uploader.settings.multipart_params || 'undefined' === typeof args.src ) {
if ( ! args ) {
return args;
}

if ( 'undefined' === typeof args.uploader || 'undefined' === typeof args.uploader.settings || 'undefined' === typeof args.uploader.settings.multipart_params || 'undefined' === typeof args.src ) {
return ( 'boolean' === typeof args ? args : true );
}

var multipart_params = args.uploader.settings.multipart_params;
var request_key = false;
var terms_key = false;
Expand Down Expand Up @@ -72,7 +76,7 @@ if ( 'object' === typeof rtMediaHook ) {
* @return {boolean}
*/
rtMediaHook.register( 'rtmedia_js_upload_file', function ( args ) {
if ( false === args ) {
if ( ! args ) {
return args;
}

Expand Down Expand Up @@ -120,7 +124,7 @@ if ( 'object' === typeof rtMediaHook ) {
}

if ( ! isTermsEnabled ) {
return args;
return ( 'boolean' === typeof args ? args : true );
}

if ( 0 === terms.length ) {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/js/rtm-upload-terms.min.js

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

2 changes: 1 addition & 1 deletion bin/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dist: xenial
language: php
sudo: required
os: linux
php:
- 7.2
branches:
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ http://www.youtube.com/watch?v=dJrykKQGDcs

== Changelog ==

= 4.6.1 [April 8, 2020] =
= 4.6.1 [April 9, 2020] =

* Enhancement

Expand Down

0 comments on commit d5f8667

Please sign in to comment.