Skip to content

Commit d5f8667

Browse files
authored
Merge pull request #1604 from rtMediaWP/develop
Version update v4.6.1
2 parents cb20733 + 74d5145 commit d5f8667

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
147147

148148
## Changelog ##
149149

150-
### 4.6.1 [April 8, 2020] ###
150+
### 4.6.1 [April 9, 2020] ###
151151

152152
* Enhancement
153153
* Disable the terms of service checkbox when the activity is published

app/assets/js/rtm-upload-terms.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ if ( 'object' === typeof rtMediaHook ) {
1515
* @return {boolean}
1616
*/
1717
rtMediaHook.register( 'rtmedia_js_before_upload', function ( args ) {
18-
if ( false === args || 'undefined' === typeof args.uploader.settings.multipart_params || 'undefined' === typeof args.src ) {
18+
if ( ! args ) {
1919
return args;
2020
}
2121

22+
if ( 'undefined' === typeof args.uploader || 'undefined' === typeof args.uploader.settings || 'undefined' === typeof args.uploader.settings.multipart_params || 'undefined' === typeof args.src ) {
23+
return ( 'boolean' === typeof args ? args : true );
24+
}
25+
2226
var multipart_params = args.uploader.settings.multipart_params;
2327
var request_key = false;
2428
var terms_key = false;
@@ -72,7 +76,7 @@ if ( 'object' === typeof rtMediaHook ) {
7276
* @return {boolean}
7377
*/
7478
rtMediaHook.register( 'rtmedia_js_upload_file', function ( args ) {
75-
if ( false === args ) {
79+
if ( ! args ) {
7680
return args;
7781
}
7882

@@ -120,7 +124,7 @@ if ( 'object' === typeof rtMediaHook ) {
120124
}
121125

122126
if ( ! isTermsEnabled ) {
123-
return args;
127+
return ( 'boolean' === typeof args ? args : true );
124128
}
125129

126130
if ( 0 === terms.length ) {

app/assets/js/rtm-upload-terms.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dist: xenial
22
language: php
3-
sudo: required
3+
os: linux
44
php:
55
- 7.2
66
branches:

readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134134

135135
== Changelog ==
136136

137-
= 4.6.1 [April 8, 2020] =
137+
= 4.6.1 [April 9, 2020] =
138138

139139
* Enhancement
140140

0 commit comments

Comments
 (0)