rtMedia for WordPress, BuddyPress and bbPress - Version 3.8.10

Version Description

  • Fix BuddyPress comment filter issue
  • Fix plupload max_file_size parameters
Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 3.8.10
Comparing to
See all releases

Code changes from version 3.8.9 to 3.8.10

app/main/controllers/activity/RTMediaBuddyPressActivity.php CHANGED
@@ -177,8 +177,15 @@ class RTMediaBuddyPressActivity {
177
  'url' => $url,
178
  'runtimes' => 'html5,flash,html4', 'browse_button' => 'rtmedia-add-media-button-post-update', // browse button assigned to "Attach Files" Button.
179
  'container' => 'rtmedia-whts-new-upload-container', 'drop_element' => 'whats-new-textarea', // drag-drop area assigned to activity update textarea
180
- 'filters' => apply_filters( 'rtmedia_plupload_files_filter', array( array( 'title' => __( 'Media Files', 'rtmedia' ), 'extensions' => get_rtmedia_allowed_upload_type() ) ) ), 'max_file_size' => min( array( ini_get( 'upload_max_filesize' ), ini_get( 'post_max_size' ) ) ), 'multipart' => true, 'urlstream_upload' => true, 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ), 'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ), 'file_data_name' => 'rtmedia_file', // key passed to $_FILE.
181
- 'multi_selection' => true, 'multipart_params' => apply_filters( 'rtmedia-multi-params', array( 'redirect' => 'no', 'rtmedia_update' => 'true', 'action' => 'wp_handle_upload', '_wp_http_referer' => $_SERVER['REQUEST_URI'], 'mode' => 'file_upload', 'rtmedia_upload_nonce' => RTMediaUploadView::upload_nonce_generator( false, true ) ) ), 'max_file_size_msg' => apply_filters( 'rtmedia_plupload_file_size_msg', min( array( ini_get( 'upload_max_filesize' ), ini_get( 'post_max_size' ) ) ) )
 
 
 
 
 
 
 
182
  );
183
  if ( wp_is_mobile() ){
184
  $params['multi_selection'] = false;
177
  'url' => $url,
178
  'runtimes' => 'html5,flash,html4', 'browse_button' => 'rtmedia-add-media-button-post-update', // browse button assigned to "Attach Files" Button.
179
  'container' => 'rtmedia-whts-new-upload-container', 'drop_element' => 'whats-new-textarea', // drag-drop area assigned to activity update textarea
180
+ 'filters' => apply_filters( 'rtmedia_plupload_files_filter', array( array( 'title' => __( 'Media Files', 'rtmedia' ), 'extensions' => get_rtmedia_allowed_upload_type() ) ) ),
181
+ 'max_file_size' => ( wp_max_upload_size() ) / ( 1024 * 1024 ) . 'M',
182
+ 'multipart' => true, 'urlstream_upload' => true,
183
+ 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
184
+ 'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ),
185
+ 'file_data_name' => 'rtmedia_file', // key passed to $_FILE.
186
+ 'multi_selection' => true,
187
+ 'multipart_params' => apply_filters( 'rtmedia-multi-params', array( 'redirect' => 'no', 'rtmedia_update' => 'true', 'action' => 'wp_handle_upload', '_wp_http_referer' => $_SERVER['REQUEST_URI'], 'mode' => 'file_upload', 'rtmedia_upload_nonce' => RTMediaUploadView::upload_nonce_generator( false, true ) ) ),
188
+ 'max_file_size_msg' => apply_filters( 'rtmedia_plupload_file_size_msg', min( array( ini_get( 'upload_max_filesize' ), ini_get( 'post_max_size' ) ) ) )
189
  );
190
  if ( wp_is_mobile() ){
191
  $params['multi_selection'] = false;
app/main/controllers/shortcodes/RTMediaGalleryShortcode.php CHANGED
@@ -65,7 +65,7 @@ class RTMediaGalleryShortcode {
65
  'container' => 'rtmedia-upload-container',
66
  'drop_element' => 'drag-drop-area',
67
  'filters' => apply_filters ( 'rtmedia_plupload_files_filter', array( array( 'title' => "Media Files", 'extensions' => get_rtmedia_allowed_upload_type () ) ) ),
68
- 'max_file_size' => min ( array( ini_get ( 'upload_max_filesize' ), ini_get ( 'post_max_size' ) ) ),
69
  'multipart' => true,
70
  'urlstream_upload' => true,
71
  'flash_swf_url' => includes_url ( 'js/plupload/plupload.flash.swf' ),
65
  'container' => 'rtmedia-upload-container',
66
  'drop_element' => 'drag-drop-area',
67
  'filters' => apply_filters ( 'rtmedia_plupload_files_filter', array( array( 'title' => "Media Files", 'extensions' => get_rtmedia_allowed_upload_type () ) ) ),
68
+ 'max_file_size' => ( wp_max_upload_size() ) / ( 1024 * 1024 ) . 'M',
69
  'multipart' => true,
70
  'urlstream_upload' => true,
71
  'flash_swf_url' => includes_url ( 'js/plupload/plupload.flash.swf' ),
app/main/controllers/template/RTMediaUploadTemplate.php CHANGED
@@ -35,7 +35,7 @@ class RTMediaUploadTemplate {
35
  'container' => 'bpm-file_upload-ui',
36
  'drop_element' => 'drag-drop-area',
37
  'filters' => apply_filters ( 'bp_media_plupload_files_filter', array( array( 'title' => "Media Files", 'extensions' => get_rtmedia_allowed_upload_type () ) ) ),
38
- 'max_file_size' => min ( array( ini_get ( 'upload_max_filesize' ), ini_get ( 'post_max_size' ) ) ),
39
  'multipart' => true,
40
  'urlstream_upload' => true,
41
  'flash_swf_url' => includes_url ( 'js/plupload/plupload.flash.swf' ),
35
  'container' => 'bpm-file_upload-ui',
36
  'drop_element' => 'drag-drop-area',
37
  'filters' => apply_filters ( 'bp_media_plupload_files_filter', array( array( 'title' => "Media Files", 'extensions' => get_rtmedia_allowed_upload_type () ) ) ),
38
+ 'max_file_size' => ( wp_max_upload_size() ) / ( 1024 * 1024 ) . 'M',
39
  'multipart' => true,
40
  'urlstream_upload' => true,
41
  'flash_swf_url' => includes_url ( 'js/plupload/plupload.flash.swf' ),
app/main/controllers/template/rt-template-functions.php CHANGED
@@ -824,7 +824,7 @@ function rmedia_single_comment( $comment ) {
824
  $html .= '<span class ="rtmedia-comment-date"> ' . apply_filters( 'rtmedia_comment_date_format', rtmedia_convert_date( $comment[ 'comment_date_gmt' ] ), $comment ) . '</span>';
825
 
826
  $comment_string = wp_kses( $comment[ 'comment_content' ], $allowedtags );
827
- $html .= '<div class="rtmedia-comment-content">' . wpautop( make_clickable( $comment_string ) ) . '</div>';
828
 
829
  global $rtmedia_media;
830
  if ( is_rt_admin() || ( isset( $comment[ 'user_id' ] ) && ( get_current_user_id() == $comment[ 'user_id' ] || $rtmedia_media->media_author == get_current_user_id() ) ) || apply_filters( 'rtmedia_allow_comment_delete', false ) ) { // show delete button for comment author and admins
824
  $html .= '<span class ="rtmedia-comment-date"> ' . apply_filters( 'rtmedia_comment_date_format', rtmedia_convert_date( $comment[ 'comment_date_gmt' ] ), $comment ) . '</span>';
825
 
826
  $comment_string = wp_kses( $comment[ 'comment_content' ], $allowedtags );
827
+ $html .= '<div class="rtmedia-comment-content">' . wpautop( make_clickable( apply_filters( 'bp_get_activity_content', $comment_string ) ) ) . '</div>';
828
 
829
  global $rtmedia_media;
830
  if ( is_rt_admin() || ( isset( $comment[ 'user_id' ] ) && ( get_current_user_id() == $comment[ 'user_id' ] || $rtmedia_media->media_author == get_current_user_id() ) ) || apply_filters( 'rtmedia_allow_comment_delete', false ) ) { // show delete button for comment author and admins
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.8.9
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.8.10
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.2.2 + BuddyPress 2.3.2.1
9
- Stable tag: 3.8.9
10
 
11
  Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
12
 
@@ -140,7 +140,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
140
 
141
  == Changelog ==
142
 
143
- 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.
 
 
144
 
145
  = 3.8.9 =
146
  * Fix CSS conflict with BuddyPress change profile picture
@@ -1028,8 +1030,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
1028
 
1029
  == Upgrade Notice ==
1030
 
1031
- = 3.8.9 =
1032
- Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix CSS conflict with BuddyPress change profile picture.
1033
 
1034
  == Sponsors ==
1035
 
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.2.2 + BuddyPress 2.3.2.1
9
+ Stable tag: 3.8.10
10
 
11
  Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
12
 
140
 
141
  == Changelog ==
142
 
143
+ = 3.8.10 =
144
+ * Fix BuddyPress comment filter issue
145
+ * Fix plupload max_file_size parameters
146
 
147
  = 3.8.9 =
148
  * Fix CSS conflict with BuddyPress change profile picture
1030
 
1031
  == Upgrade Notice ==
1032
 
1033
+ = 3.8.10 =
1034
+ Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix BuddyPress comment filter issue, fix plupload max_file_size parameters.
1035
 
1036
  == Sponsors ==
1037