Skip to content

Commit 98e672d

Browse files
authored
Merge pull request #1441 from rtMediaWP/develop
4.5.9 Release Version [ develop to master ]
2 parents e6f5b86 + f5f52e0 commit 98e672d

File tree

8 files changed

+70
-18
lines changed

8 files changed

+70
-18
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & mor
1111
![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=MU1JamdmRnppK0hhQy9QMU8wdDJ2MUEyb1ZuS0ljVFQvSHZ6anFvNzUxTT0tLXhUNnliTnZGcE5CcW93N0I1eXdnM3c9PQ==--8c124e667dd0c317618efde1bed2b260000916b6)
1212

1313

14-
* **Contributors:** [rtcamp](http://profiles.wordpress.org/rtcamp), [mangeshp](http://profiles.wordpress.org/mangeshp), [sanket.parmar](http://profiles.wordpress.org/sanket.parmar), [pranalipatel](http://profiles.wordpress.org/pranalipatel), [jignesh.nakrani](http://profiles.wordpress.org/jignesh.nakrani), [manishsongirkar36](http://profiles.wordpress.org/manishsongirkar36), [kiranpotphode](http://profiles.wordpress.org/kiranpotphode), [yahil](http://profiles.wordpress.org/yahil), [1naveengiri](http://profiles.wordpress.org/1naveengiri), [bhargavbhandari90](http://profiles.wordpress.org/bhargavbhandari90), [deepak1191](http://profiles.wordpress.org/deepak1191), [rittesh.patel](http://profiles.wordpress.org/rittesh.patel), [sagarjadhav](http://profiles.wordpress.org/sagarjadhav), [pushpak.pop](http://profiles.wordpress.org/pushpak.pop), [faishal](http://profiles.wordpress.org/faishal), [desaiuditd](http://profiles.wordpress.org/desaiuditd), [rahul286](http://profiles.wordpress.org/rahul286), [JoshuaAbenazer](http://profiles.wordpress.org/JoshuaAbenazer), [gagan0123](http://profiles.wordpress.org/gagan0123), [saurabhshukla](http://profiles.wordpress.org/saurabhshukla), [nitun.lanjewar](http://profiles.wordpress.org/nitun.lanjewar), [umesh.nevase](http://profiles.wordpress.org/umesh.nevase), [suhasgirgaonkar](http://profiles.wordpress.org/suhasgirgaonkar), [neerukoul](http://profiles.wordpress.org/neerukoul), [hrishiv90](http://profiles.wordpress.org/hrishiv90), [kanakiyajay](http://profiles.wordpress.org/kanakiyajay), [jarretc](http://profiles.wordpress.org/jarretc), [tobiaskluge](http://profiles.wordpress.org/tobiaskluge), [rafaelfunchal](http://profiles.wordpress.org/rafaelfunchal), [UmeshSingla](http://profiles.wordpress.org/UmeshSingla), [mehulkaklotar](http://profiles.wordpress.org/mehulkaklotar), [tannermirabel](http://profiles.wordpress.org/tannermirabel), [kishores](http://profiles.wordpress.org/kishores), [chandrapatel](http://profiles.wordpress.org/chandrapatel), [rahul3883](http://profiles.wordpress.org/rahul3883/), [nomnom99](http://profiles.wordpress.org/nomnom99), [sayanchakraborty](https://profiles.wordpress.org/sayanchakraborty), [milindmore22](https://profiles.wordpress.org/milindmore22), [thrijith](https://profiles.wordpress.org/thrijith), [abhijitrakas](https://profiles.wordpress.org/abhijitrakas), [sid177](https://profiles.wordpress.org/sid177), [montu3366](https://profiles.wordpress.org/montu3366), [jashwini](https://profiles.wordpress.org/jashwini), [juhise](https://profiles.wordpress.org/juhise), [ravatparmar](https://profiles.wordpress.org/ravatparmar), [dharmin16](https://profiles.wordpress.org/dharmin16), [malavvasita](https://profiles.wordpress.org/malavvasita), [pooja1210](https://profiles.wordpress.org/pooja1210), [krupajnanda](https://profiles.wordpress.org/krupajnanda), [kanumalivad](https://profiles.wordpress.org/kanumalivad), [surajkumarsingh](https://profiles.wordpress.org/surajkumarsingh)
14+
* **Contributors:** [rtcamp](http://profiles.wordpress.org/rtcamp), [mangeshp](http://profiles.wordpress.org/mangeshp), [sanket.parmar](http://profiles.wordpress.org/sanket.parmar), [pranalipatel](http://profiles.wordpress.org/pranalipatel), [jignesh.nakrani](http://profiles.wordpress.org/jignesh.nakrani), [manishsongirkar36](http://profiles.wordpress.org/manishsongirkar36), [kiranpotphode](http://profiles.wordpress.org/kiranpotphode), [yahil](http://profiles.wordpress.org/yahil), [1naveengiri](http://profiles.wordpress.org/1naveengiri), [bhargavbhandari90](http://profiles.wordpress.org/bhargavbhandari90), [deepak1191](http://profiles.wordpress.org/deepak1191), [rittesh.patel](http://profiles.wordpress.org/rittesh.patel), [sagarjadhav](http://profiles.wordpress.org/sagarjadhav), [pushpak.pop](http://profiles.wordpress.org/pushpak.pop), [faishal](http://profiles.wordpress.org/faishal), [desaiuditd](http://profiles.wordpress.org/desaiuditd), [rahul286](http://profiles.wordpress.org/rahul286), [JoshuaAbenazer](http://profiles.wordpress.org/JoshuaAbenazer), [gagan0123](http://profiles.wordpress.org/gagan0123), [saurabhshukla](http://profiles.wordpress.org/saurabhshukla), [nitun.lanjewar](http://profiles.wordpress.org/nitun.lanjewar), [umesh.nevase](http://profiles.wordpress.org/umesh.nevase), [suhasgirgaonkar](http://profiles.wordpress.org/suhasgirgaonkar), [neerukoul](http://profiles.wordpress.org/neerukoul), [hrishiv90](http://profiles.wordpress.org/hrishiv90), [kanakiyajay](http://profiles.wordpress.org/kanakiyajay), [jarretc](http://profiles.wordpress.org/jarretc), [tobiaskluge](http://profiles.wordpress.org/tobiaskluge), [rafaelfunchal](http://profiles.wordpress.org/rafaelfunchal), [UmeshSingla](http://profiles.wordpress.org/UmeshSingla), [mehulkaklotar](http://profiles.wordpress.org/mehulkaklotar), [tannermirabel](http://profiles.wordpress.org/tannermirabel), [kishores](http://profiles.wordpress.org/kishores), [chandrapatel](http://profiles.wordpress.org/chandrapatel), [rahul3883](http://profiles.wordpress.org/rahul3883/), [nomnom99](http://profiles.wordpress.org/nomnom99), [sayanchakraborty](https://profiles.wordpress.org/sayanchakraborty), [milindmore22](https://profiles.wordpress.org/milindmore22), [thrijith](https://profiles.wordpress.org/thrijith), [abhijitrakas](https://profiles.wordpress.org/abhijitrakas), [sid177](https://profiles.wordpress.org/sid177), [montu3366](https://profiles.wordpress.org/montu3366), [jashwini](https://profiles.wordpress.org/jashwini), [juhise](https://profiles.wordpress.org/juhise), [ravatparmar](https://profiles.wordpress.org/ravatparmar), [dharmin16](https://profiles.wordpress.org/dharmin16), [malavvasita](https://profiles.wordpress.org/malavvasita), [pooja1210](https://profiles.wordpress.org/pooja1210), [krupajnanda](https://profiles.wordpress.org/krupajnanda), [kanumalivad](https://profiles.wordpress.org/kanumalivad), [surajkumarsingh](https://profiles.wordpress.org/surajkumarsingh), [dishitpala](https://profiles.wordpress.org/dishitpala)
1515

1616

1717
* **License:** [GPL v2 or later]( http://www.gnu.org/licenses/gpl-2.0.html)
@@ -147,6 +147,15 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
147147

148148
## Changelog ##
149149

150+
### 4.5.9 [October 24, 2019] ###
151+
152+
* Enhancement
153+
* Add new class on activity page based on the uploaded media type
154+
155+
* FIXED
156+
* Post Update button issue with BuddyPress Nouveau template
157+
* Issue when user uploads the media with link in comment on buddypress activity
158+
150159
### 4.5.8 [August 6, 2019] ###
151160

152161
* FIXED

app/assets/css/rtmedia.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ button::-moz-focus-inner {
865865
padding: 0;
866866
width: 90px;
867867
height: 110px;
868-
-webkit-tap-highlight-color: transparent;
868+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
869869
opacity: 0;
870870
z-index: 10;
871871
-webkit-transition: all 300ms ease-out;
@@ -2969,7 +2969,7 @@ a.rtmedia-upload-media-link {
29692969
#buddypress .mejs-controls button {
29702970
padding: 4px 8px;
29712971
border: none;
2972-
background: transparent url("../../../lib/media-element/mejs-controls.png") no-repeat;
2972+
background: rgba(0, 0, 0, 0) url("../../../lib/media-element/mejs-controls.png") no-repeat;
29732973
}
29742974
#buddypress .mejs-controls .mejs-play > button {
29752975
background-position: 0 0;

app/assets/js/rtMedia.backbone.js

+9
Original file line numberDiff line numberDiff line change
@@ -1005,9 +1005,18 @@ jQuery( document ).ready( function( $ ) {
10051005

10061006
var rt_uploader_div = whats_new_form.find( '.rtmedia-uploader-div' );
10071007
var rt_uploader_filelist = whats_new_form.find( '#rtmedia_uploader_filelist' );
1008+
var whats_new_option = whats_new_form.find( '#whats-new-options' );
10081009

10091010
rt_uploader_div.show();
10101011

1012+
if ( 0 !== whats_new_option.length ) {
1013+
whats_new_option.show();
1014+
1015+
whats_new_option.css( {
1016+
'opacity': '1'
1017+
} );
1018+
}
1019+
10111020
rt_uploader_div.addClass( 'clearfix' );
10121021

10131022
whats_new_form.find( '#rtmedia-action-update' ).removeClass( 'clearfix' );

app/main/controllers/activity/RTMediaActivity.php

+26-4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,25 @@ public function create_activity_html( $type = 'activity' ) {
7676
}
7777
$rtmedia_activity_ul_class = apply_filters( 'rtmedia_' . $type . '_ul_class', 'rtm-activity-media-list' );
7878

79+
$uploaded_media_types = [];
80+
$rtmedia_activity_ul_list_class = 'rtm-activity-mixed-list';
81+
82+
// Loop through each media and check media type.
83+
$uploaded_media_types = array_map( function ( $current_media ) {
84+
return is_object( $current_media ) ? $current_media->media_type : '';
85+
}, $media_details );
86+
87+
// Remove empty values from media type list.
88+
$media_type_list = array_filter( $uploaded_media_types, 'strlen' );
89+
90+
// Update activity class based on media type.
91+
if ( ! empty( $media_type_list ) ) {
92+
if ( count( array_unique( $uploaded_media_types ) ) === 1 ) {
93+
$current_media_type = end( $uploaded_media_types );
94+
$rtmedia_activity_ul_list_class = "rtm-activity-{$current_media_type}-list";
95+
}
96+
}
97+
7998
$media_content = '';
8099
$count = 0;
81100
foreach ( $media_details as $media ) {
@@ -144,10 +163,11 @@ public function create_activity_html( $type = 'activity' ) {
144163
}
145164

146165
$media_container_start = sprintf(
147-
'<ul class="%s %s rtmedia-activity-media-length-%s">',
166+
'<ul class="%s %s rtmedia-activity-media-length-%s %s">',
148167
esc_attr( $media_container_start_class ),
149168
esc_attr( $rtmedia_activity_ul_class ),
150-
esc_attr( $count )
169+
esc_attr( $count ),
170+
esc_attr( $rtmedia_activity_ul_list_class )
151171
);
152172

153173
$media_container_end = '</ul>';
@@ -169,15 +189,17 @@ public function create_activity_html( $type = 'activity' ) {
169189
$activity .= $activity_content;
170190
$activity .= $activity_container_end;
171191

192+
$current_max_links = absint( get_option( 'comment_max_links' ) ); // get current number of allowed links.
193+
172194
// Bypass comment links limit.
173195
add_filter(
174196
'option_comment_max_links',
175-
function ( $values ) {
197+
function ( $values ) use ( $current_max_links ) {
176198
$rtmedia_attached_files = filter_input( INPUT_POST, 'rtMedia_attached_files', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
177199
// Check if files available.
178200
if ( is_array( $rtmedia_attached_files ) && ! empty( $rtmedia_attached_files[0] ) ) {
179201
// One url of image and other for anchor tag.
180-
$values = count( $rtmedia_attached_files ) * 3;
202+
$values = ( count( $rtmedia_attached_files ) * 3 ) + $current_max_links;
181203
}
182204
return $values;
183205
}

bin/.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ before_script:
3333
- sudo apt-get autoclean
3434
- sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = [email protected]" > /home/travis/.gitconfig'
3535
- wget -qO ee rt.cx/ee && sudo bash ee
36-
- sudo ee stack install
36+
- sudo ee stack install --nginx
37+
- sudo ee stack install --web
3738
- sudo wp --yes --allow-root cli update --nightly
3839
- sudo ee site create automation.rtmedia.me --wp --user=ADMINUSER [email protected] --pass=ADMINPASS
3940
- sudo sed -i '/^127.0.0.1/ s/$/ automation.rtmedia.me/' /etc/hosts
@@ -42,7 +43,7 @@ before_script:
4243
- cd $PLUGIN_DIR
4344
- cp -Rf * /var/www/automation.rtmedia.me/htdocs/wp-content/plugins/rtMedia/
4445
- cd /var/www/automation.rtmedia.me/htdocs/
45-
- wp --allow-root plugin install https://downloads.wordpress.org/plugin/buddypress.4.4.0.zip
46+
- wp --allow-root plugin install https://downloads.wordpress.org/plugin/buddypress.5.0.0.zip
4647
- wp plugin activate --all
4748
- cd $PLUGIN_DIR
4849
- cd tests/codeception/tests/_data

index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
44
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
55
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6-
Version: 4.5.8
6+
Version: 4.5.9
77
Author: rtCamp
88
Text Domain: buddypress-media
99
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -22,7 +22,7 @@
2222
* The version of the plugin
2323
*
2424
*/
25-
define( 'RTMEDIA_VERSION', '4.5.8' );
25+
define( 'RTMEDIA_VERSION', '4.5.9' );
2626
}
2727

2828
if ( ! defined( 'RTMEDIA_PATH' ) ) {

languages/buddypress-media.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.8\n"
5+
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.9\n"
66
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7-
"POT-Creation-Date: 2019-08-06 10:41:32+00:00\n"
7+
"POT-Creation-Date: 2019-10-24 07:25:06+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"

readme.txt

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
=== rtMedia for WordPress, BuddyPress and bbPress ===
2-
Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99, sayanchakraborty, milindmore22, thrijith, abhijitrakas, sid177, montu3366, jashwini, juhise, ravatparmar, dharmin16, malavvasita, pooja1210, krupajnanda, surajkumarsingh, kanumalivad
2+
Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99, sayanchakraborty, milindmore22, thrijith, abhijitrakas, sid177, montu3366, jashwini, juhise, ravatparmar, dharmin16, malavvasita, pooja1210, krupajnanda, surajkumarsingh, kanumalivad, dishitpala
33
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, media-node, rtMedia, WordPress, bbPress, masonry
44
License: GPLv2 or later
55
License URI: http://www.gnu.org/licenses/gpl-2.0.html
66
Requires at least: WordPress 4.1
7-
Tested up to: 5.2.2
8-
Stable tag: 4.5.8
7+
Tested up to: 5.3
8+
Stable tag: 4.5.9
99

1010
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
1111

@@ -134,6 +134,17 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134134

135135
== Changelog ==
136136

137+
= 4.5.9 [October 24, 2019] =
138+
139+
* Enhancement
140+
141+
* Add new class on activity page based on the uploaded media type
142+
143+
* FIXED
144+
145+
* Post Update button issue with BuddyPress Nouveau template
146+
* Issue when user uploads the media with link in comment on buddypress activity
147+
137148
= 4.5.8 [August 6, 2019] =
138149

139150
* FIXED
@@ -1614,8 +1625,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
16141625

16151626
== Upgrade Notice ==
16161627

1617-
= 4.5.8 =
1618-
rtMedia 4.5.8, with fixes for, media duplication when posted from the lightbox, upload terms and direct media upload compability on activity comment and media caption overlapping issue on Legacy template with some UI fixes.
1628+
= 4.5.9 =
1629+
rtMedia 4.5.9, with an addition of new classes in BuddPress Activity based on the uploaded media type, and other minor fixes around BuddPress Activity.
16191630

16201631
== Sponsors ==
16211632

0 commit comments

Comments
 (0)