Version Description
- Fix BuddyPress group media gets upload to user profile issue
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.7.31 |
Comparing to | |
See all releases |
Code changes from version 3.7.30 to 3.7.31
- app/main/controllers/template/rt-template-functions.php +10 -3
- index.php +1 -1
- readme.txt +6 -3
app/main/controllers/template/rt-template-functions.php
CHANGED
@@ -2824,9 +2824,16 @@ function rtmedia_is_uploader_view_allowed( $allow, $section = 'media_gallery' ){
|
|
2824 |
}
|
2825 |
|
2826 |
function rtmedia_modify_activity_upload_url( $params ){
|
2827 |
-
|
2828 |
-
|
2829 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2830 |
}
|
2831 |
}
|
2832 |
return $params;
|
2824 |
}
|
2825 |
|
2826 |
function rtmedia_modify_activity_upload_url( $params ){
|
2827 |
+
// return original params if BuddyPress multilingual plugin is not active
|
2828 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
2829 |
+
if( function_exists( 'is_plugin_active' ) && is_plugin_active( 'buddypress-multilingual/sitepress-bp.php' ) ){
|
2830 |
+
if( class_exists( 'BuddyPress' ) ) {
|
2831 |
+
// change upload url only if it's activity page and if it's group page than it shouldn't group media page
|
2832 |
+
if( bp_is_activity_component() || ( bp_is_groups_component() && ! is_rtmedia_page() ) ){
|
2833 |
+
if( function_exists( 'bp_get_activity_directory_permalink' ) ){
|
2834 |
+
$params['url'] = bp_get_activity_directory_permalink() . 'upload/';
|
2835 |
+
}
|
2836 |
+
}
|
2837 |
}
|
2838 |
}
|
2839 |
return $params;
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: http://rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
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!
|
7 |
-
Version: 3.7.
|
8 |
Author: rtCamp
|
9 |
Text Domain: rtmedia
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: http://rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
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!
|
7 |
+
Version: 3.7.31
|
8 |
Author: rtCamp
|
9 |
Text Domain: rtmedia
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
|
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.6
|
8 |
Tested up to: WordPress 4.1 + BuddyPress 2.1.1
|
9 |
-
Stable tag: 3.7.
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
@@ -128,6 +128,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
128 |
|
129 |
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
|
130 |
|
|
|
|
|
|
|
131 |
= 3.7.30 =
|
132 |
* Change activity upload URL when activity component is enabled
|
133 |
|
@@ -894,8 +897,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
894 |
|
895 |
== Upgrade Notice ==
|
896 |
|
897 |
-
= 3.7.
|
898 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress.
|
899 |
|
900 |
== Sponsors ==
|
901 |
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.6
|
8 |
Tested up to: WordPress 4.1 + BuddyPress 2.1.1
|
9 |
+
Stable tag: 3.7.31
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
128 |
|
129 |
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
|
130 |
|
131 |
+
= 3.7.31 =
|
132 |
+
* Fix BuddyPress group media gets upload to user profile issue
|
133 |
+
|
134 |
= 3.7.30 =
|
135 |
* Change activity upload URL when activity component is enabled
|
136 |
|
897 |
|
898 |
== Upgrade Notice ==
|
899 |
|
900 |
+
= 3.7.31 =
|
901 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix BuddyPress group media gets upload to user profile issue.
|
902 |
|
903 |
== Sponsors ==
|
904 |
|