Skip to content

Commit 37d2f6b

Browse files
authored
Version update v4.5.10 (#1517)
Version update v4.5.10
2 parents 82f24f6 + a4358b8 commit 37d2f6b

37 files changed

+150
-46
lines changed

.github/workflows/create.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
tag:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: WordPress Plugin Deploy
12+
uses: rtCamp/action-wordpress-org-plugin-deploy@master
13+
env:
14+
ASSETS_DIR: assets
15+
EXCLUDE_LIST: .bowerrc .gitattributes .gitignore .jshintrc .travis.yml CONTRIBUTING.md
16+
Gruntfile.js README.md bin deploy.sh package-lock.json package.json phpcs.xml phpunit.xml
17+
tests
18+
SLUG: buddypress-media
19+
WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
20+
WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
147147

148148
## Changelog ##
149149

150+
### 4.5.10 [December 26, 2019] ###
151+
152+
* Enhancement
153+
* Add better styling for albums
154+
155+
* FIXED
156+
* Warnings on Support page of rtMedia Settings
157+
* Issue with rtMedia Update filter on BuddyPress activity wall
158+
* Redirection popup on Media upload in Activity stream
159+
150160
### 4.5.9 [October 29, 2019] ###
151161

152162
* Enhancement
@@ -1634,8 +1644,8 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
16341644
* HTML5 Audio Tag Support (with fallback)
16351645
* HTML5 Video Tag Support (with fallback)
16361646

1637-
#### 4.3 ####
1638-
Now upload media in comment & fixed rtMedia shortcode pagination along with several other bugs. Please update/re-save the permalinks after the plugin update.
1647+
#### 4.5.10 ####
1648+
rtMedia 4.5.10, with improved styling for albums and improved UX on BuddyPress Activity Wall.
16391649

16401650
## Sponsors ##
16411651

app/assets/css/rtmedia.css

+8-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: rgba(0, 0, 0, 0);
868+
-webkit-tap-highlight-color: transparent;
869869
opacity: 0;
870870
z-index: 10;
871871
-webkit-transition: all 300ms ease-out;
@@ -1915,6 +1915,12 @@ a.rtmedia-comment-link.rtmedia-comments-link {
19151915
width: 100%;
19161916
}
19171917

1918+
#buddypress ul.rtmedia-album-list li.rtmedia-list-item {
1919+
border: 1px solid #ddd;
1920+
padding: 5px;
1921+
border-radius: 5px;
1922+
}
1923+
19181924
/*------------------------------------------------------------------------------
19191925
14.0 - Media Screen
19201926
------------------------------------------------------------------------------*/
@@ -2969,7 +2975,7 @@ a.rtmedia-upload-media-link {
29692975
#buddypress .mejs-controls button {
29702976
padding: 4px 8px;
29712977
border: none;
2972-
background: rgba(0, 0, 0, 0) url("../../../lib/media-element/mejs-controls.png") no-repeat;
2978+
background: transparent url("../../../lib/media-element/mejs-controls.png") no-repeat;
29732979
}
29742980
#buddypress .mejs-controls .mejs-play > button {
29752981
background-position: 0 0;

app/assets/css/rtmedia.min.css

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

app/assets/css/sass/_album.scss

+11-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@
2727
.rtmedia-media {
2828
width: 100%;
2929
}
30-
}
30+
}
31+
32+
#buddypress {
33+
ul.rtmedia-album-list {
34+
li.rtmedia-list-item {
35+
border: 1px solid #ddd;
36+
padding: 5px;
37+
border-radius: 5px;
38+
}
39+
}
40+
}

app/assets/js/rtMedia.backbone.js

+1
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@ jQuery( document ).ready( function( $ ) {
10301030
} );
10311031

10321032
whats_new_form.bind( 'submit', function () {
1033+
window.onbeforeunload = null;
10331034
setTimeout( function () {
10341035
whats_new_form.find( '.rtmedia-uploader-div' ).hide();
10351036
}, 2000 );

app/helper/RTMediaSupport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function rtmedia_scan_template_files( $template_path ) {
251251
if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
252252
$sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
253253
foreach ( $sub_files as $sub_file ) {
254-
$rt_to_dir_paths = RTMediaTemplate::locate_template( substr( $sub_file, 0, ( count( $sub_file ) - 5 ) ) );
254+
$rt_to_dir_paths = RTMediaTemplate::locate_template( str_replace( '.php', '', $sub_file ) );
255255
$rt_to_dir_path = str_replace( '//', '/', $rt_to_dir_paths );
256256
$result[] = str_replace( ABSPATH . 'wp-content/', '', $rt_to_dir_path );
257257
}

app/main/controllers/activity/RTMediaBuddyPressActivity.php

+16
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function __construct() {
2828
add_filter( 'bp_activity_allowed_tags', array( &$this, 'override_allowed_tags' ) );
2929
add_filter( 'bp_get_activity_parent_content', array( &$this, 'bp_get_activity_parent_content' ) );
3030
add_filter( 'bp_activity_content_before_save', array( $this, 'bp_activity_content_before_save' ) );
31+
add_filter( 'bp_activity_type_before_save', array( $this, 'bp_activity_type_before_save' ) );
3132
add_action( 'bp_activity_deleted_activities', array( &$this, 'bp_activity_deleted_activities' ) );
3233

3334
// Filter bp_activity_prefetch_object_data for translatable activity actions
@@ -271,6 +272,21 @@ public function bp_activity_content_before_save( $content ) {
271272
return $content;
272273
}
273274

275+
/**
276+
* This function will check for the media file attached to the actitvity and accordingly will set type.
277+
*
278+
* @param string $type Type of the Activity.
279+
*
280+
* @return string Filtered value of the activity type.
281+
*/
282+
public function bp_activity_type_before_save( $type ) {
283+
$rtmedia_attached_files = filter_input( INPUT_POST, 'rtMedia_attached_files', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
284+
if ( ( ! empty( $rtmedia_attached_files ) ) && is_array( $rtmedia_attached_files ) && 'activity_update' === $type ) {
285+
$type = 'rtmedia_update';
286+
}
287+
return $type;
288+
}
289+
274290
function delete_comment_sync( $activity_id, $comment_id ) {
275291
global $wpdb;
276292
$comment_id = $wpdb->get_var( $wpdb->prepare( "select comment_id from {$wpdb->commentmeta} where meta_key = 'activity_id' and meta_value = %s", $comment_id ) );

app/main/controllers/template/rtmedia-actions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ function rtmedia_admin_pages_content( $page ) {
538538
<li><?php esc_html_e( 'WordPress/BuddyPress Plugin Development', 'buddypress-media' ); ?></li>
539539
</ol>
540540
<div class="clearfix">
541-
<a href="https://rtmedia.io/contact" class="rtm-button rtm-success" target="_blank"><?php esc_html_e( 'Contact Us', 'buddypress-media' ); ?></a>
541+
<a href="https://rtmedia.io/enterprise-plan" class="rtm-button rtm-success" target="_blank"><?php esc_html_e( 'Contact Us', 'buddypress-media' ); ?></a>
542542
</div>
543543
</div>
544544
<?php

assets/banner-772x250.jpg

-86.1 KB
Loading

assets/icon-128x128.png

2.78 KB
Loading

assets/screenshot-1.jpg

61.6 KB
Loading

assets/screenshot-10.jpg

29.1 KB
Loading

assets/screenshot-11.jpg

68.7 KB
Loading

assets/screenshot-12.jpg

78.5 KB
Loading

assets/screenshot-13.jpg

59.1 KB
Loading

assets/screenshot-14.jpg

28.3 KB
Loading

assets/screenshot-2.jpg

60.1 KB
Loading

assets/screenshot-3.jpg

36.2 KB
Loading

assets/screenshot-4.jpg

59.9 KB
Loading

assets/screenshot-5.jpg

47.6 KB
Loading

assets/screenshot-6.jpg

57.4 KB
Loading

assets/screenshot-7.jpg

70.3 KB
Loading

assets/screenshot-8.png

359 KB
Loading

assets/screenshot-9.png

213 KB
Loading

bin/.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dist: xenial
22
language: php
33
sudo: required
44
php:
5-
- 7.1
5+
- 7.2
66
branches:
77
only:
88
- develop
@@ -43,8 +43,9 @@ before_script:
4343
- cd $PLUGIN_DIR
4444
- cp -Rf * /var/www/automation.rtmedia.me/htdocs/wp-content/plugins/rtMedia/
4545
- cd /var/www/automation.rtmedia.me/htdocs/
46-
- wp --allow-root plugin install https://downloads.wordpress.org/plugin/buddypress.5.0.0.zip
46+
- wp --allow-root plugin install https://downloads.wordpress.org/plugin/buddypress.5.1.1.zip
4747
- wp plugin activate --all
48+
- wp theme activate twentynineteen
4849
- cd $PLUGIN_DIR
4950
- cd tests/codeception/tests/_data
5051
- git clone --depth=1 https://github.com/rtCamp/rtmedia-test-data.git test-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.9
6+
Version: 4.5.10
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.9' );
25+
define( 'RTMEDIA_VERSION', '4.5.10' );
2626
}
2727

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

languages/buddypress-media.po

+13-13
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.9\n"
5+
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.10\n"
66
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7-
"POT-Creation-Date: 2019-10-29 08:18:31+00:00\n"
7+
"POT-Creation-Date: 2019-12-20 10:04:47+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -2519,48 +2519,48 @@ msgstr ""
25192519
msgid "I agree to"
25202520
msgstr ""
25212521

2522-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:463
2522+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:479
25232523
msgid "Media Files"
25242524
msgstr ""
25252525

2526-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:501
2526+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:517
25272527
#: app/main/controllers/media/RTMediaComment.php:175
25282528
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:102
25292529
#: app/main/controllers/template/rtmedia-functions.php:2132
25302530
msgid "You are not allowed to upload/attach media."
25312531
msgstr ""
25322532

2533-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:636
2533+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:652
25342534
msgid "%s added a %s"
25352535
msgstr ""
25362536

2537-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:643
2538-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:645
2537+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:659
2538+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:661
25392539
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:229
25402540
msgid "%s added %d %s"
25412541
msgstr ""
25422542

2543-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:698
2543+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:714
25442544
msgid "%1$s liked a %2$s in the group %3$s"
25452545
msgstr ""
25462546

2547-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:701
2547+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:717
25482548
msgid "%1$s liked their %2$s"
25492549
msgstr ""
25502550

2551-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:705
2551+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:721
25522552
msgid "%1$s liked %2$s's %3$s"
25532553
msgstr ""
25542554

2555-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:795
2555+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:811
25562556
msgid "%1$s commented on a %2$s in the group %3$s"
25572557
msgstr ""
25582558

2559-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:798
2559+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:814
25602560
msgid "%1$s commented on their %2$s"
25612561
msgstr ""
25622562

2563-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:802
2563+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:818
25642564
msgid "%1$s commented on %2$s's %3$s"
25652565
msgstr ""
25662566

phpcs.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="">
3+
<description>Generally-applicable sniffs for WordPress plugins</description>
4+
5+
<rule ref="WordPress-Core">
6+
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
7+
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
8+
</rule>
9+
10+
<rule ref="WordPress-Extra" />
11+
12+
<rule ref="WordPress-Docs" />
13+
14+
<rule ref="PHPCompatibility"/>
15+
<config name="testVersion" value="5.3-"/>
16+
17+
<arg name="extensions" value="php"/>
18+
<arg value="s"/>
19+
20+
<exclude-pattern>*/bin/*</exclude-pattern>
21+
<exclude-pattern>*/lib/*</exclude-pattern>
22+
<exclude-pattern>*/tests/*</exclude-pattern>
23+
<exclude-pattern>*/vendor/*</exclude-pattern>
24+
<exclude-pattern>*/node_modules/*</exclude-pattern>
25+
<exclude-pattern>.github/</exclude-pattern>
26+
</ruleset>

readme.txt

+20-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, i
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.3
8-
Stable tag: 4.5.9
7+
Tested up to: 5.3.2
8+
Stable tag: 4.5.10
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,18 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134134

135135
== Changelog ==
136136

137+
= 4.5.10 [December 26, 2019] =
138+
139+
* Enhancement
140+
141+
* Add better styling for albums
142+
143+
* FIXED
144+
145+
* Warnings on Support page of rtMedia Settings
146+
* Issue with rtMedia Update filter on BuddyPress activity wall
147+
* Redirection popup on Media upload in Activity stream
148+
137149
= 4.5.9 [October 29, 2019] =
138150

139151
* Enhancement
@@ -142,8 +154,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
142154

143155
* FIXED
144156

145-
* Post Update button issue with BuddyPress Nouveau template
146-
* Issue when user uploads the media with link in comment on buddypress activity
157+
* Post Update button issue with BuddyPress Nouveau template
158+
* Issue when user uploads the media with link in comment on buddypress activity
147159

148160
= 4.5.8 [August 6, 2019] =
149161

@@ -171,8 +183,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
171183
* Issue of entering text in text area when Direct Upload and Upload terms enabled together
172184
* UI of pagination button height and text field
173185
* Export/Import button issue in Firefox browser
174-
* Issue of direct upload and media was not opening in lightbox with TwentySeventeen theme v2.1
175-
* Empty space issue for generated activity when media is uploaded without adding text
186+
* Issue of direct upload and media was not opening in lightbox with TwentySeventeen theme v2.1
187+
* Empty space issue for generated activity when media is uploaded without adding text
176188
* Other Errors, Warnings and notices
177189
* Group Activity media are not shown in Group Media tab with BuddyPress Nouveau Template
178190
* User’s name autosuggestion
@@ -1625,8 +1637,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
16251637

16261638
== Upgrade Notice ==
16271639

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.
1640+
= 4.5.10 =
1641+
rtMedia 4.5.10, with improved styling for albums and improved UX on BuddyPress Activity Wall.
16301642

16311643
== Sponsors ==
16321644

tests/codeception/codeception.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ paths:
44
log: tests/_output
55
data: tests/_data
66
helpers: tests/_support
7+
bootstrap: _bootstrap.php
78
settings:
8-
bootstrap: _bootstrap.php
99
colors: true
1010
memory_limit: 1024M
1111
params:

0 commit comments

Comments
 (0)