rtMedia for WordPress, BuddyPress and bbPress - Version 3.7.22

Version Description

  • Validate media before inserting
Download this release

Release Info

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

Code changes from version 3.7.21 to 3.7.22

app/assets/js/rtMedia.backbone.js CHANGED
@@ -570,7 +570,7 @@ jQuery( function ( $ ) {
570
uploaderObj.uploader.settings.multipart_params.activity_id = rtnObj.activity_id;
571
activity_id = rtnObj.activity_id;
572
if ( rtnObj.permalink != '' ) {
573
- $( "#" + file.id + " .plupload_file_name" ).html( "<a href='" + rtnObj.permalink + "' target='_blank' title='" + rtnObj.permalink + "'>" + file.title.substring( 0, 40 ) + "</a>" );
574
$( "#" + file.id + " .plupload_media_edit" ).html( "<a href='" + rtnObj.permalink + "edit' target='_blank'><span title='" + rtmedia_edit_media + "'><i class='rtmicon-edit'></i> " + rtmedia_edit + "</span></a>" );
575
$( "#" + file.id + " .plupload_delete" ).html( "<span id='" + rtnObj.media_id + "' class='rtmedia-delete-uploaded-media' title='" + rtmedia_delete + "'>&times;</span>" );
576
}
570
uploaderObj.uploader.settings.multipart_params.activity_id = rtnObj.activity_id;
571
activity_id = rtnObj.activity_id;
572
if ( rtnObj.permalink != '' ) {
573
+ $( "#" + file.id + " .plupload_file_name" ).html( "<a href='" + rtnObj.permalink + "' target='_blank' title='" + rtnObj.permalink + "'>" + file.title.substring( 0, 40 ).replace( /(<([^>]+)>)/ig, "" ) + "</a>" );
574
$( "#" + file.id + " .plupload_media_edit" ).html( "<a href='" + rtnObj.permalink + "edit' target='_blank'><span title='" + rtmedia_edit_media + "'><i class='rtmicon-edit'></i> " + rtmedia_edit + "</span></a>" );
575
$( "#" + file.id + " .plupload_delete" ).html( "<span id='" + rtnObj.media_id + "' class='rtmedia-delete-uploaded-media' title='" + rtmedia_delete + "'>&times;</span>" );
576
}
app/main/controllers/media/RTMediaMedia.php CHANGED
@@ -202,11 +202,13 @@ class RTMediaMedia {
202
if ( array_key_exists( 'media_title', $data ) || array_key_exists( 'description', $data ) ){
203
$post_data[ 'ID' ] = $media_id;
204
if ( isset ( $data[ 'media_title' ] ) ){
205
$post_data[ 'post_title' ] = $data[ 'media_title' ];
206
- $post_data[ 'post_name' ] = sanitize_title( $data[ 'media_title' ] );
207
}
208
if ( isset ( $data[ 'description' ] ) ){
209
$post_data[ 'post_content' ] = $data[ 'description' ];
210
unset ( $data[ 'description' ] );
211
}
212
wp_update_post( $post_data );
@@ -415,6 +417,8 @@ class RTMediaMedia {
415
$attachments = array();
416
417
foreach ( $file_object as $file ) {
418
$attachments[ ] = array(
419
'post_mime_type' => $file[ 'type' ],
420
'guid' => $file[ 'url' ],
202
if ( array_key_exists( 'media_title', $data ) || array_key_exists( 'description', $data ) ){
203
$post_data[ 'ID' ] = $media_id;
204
if ( isset ( $data[ 'media_title' ] ) ){
205
+ $data[ 'media_title' ] = sanitize_title( $data[ 'media_title' ] );
206
$post_data[ 'post_title' ] = $data[ 'media_title' ];
207
+ $post_data[ 'post_name' ] = $data[ 'media_title' ];
208
}
209
if ( isset ( $data[ 'description' ] ) ){
210
$post_data[ 'post_content' ] = $data[ 'description' ];
211
+ $post_data[ 'description' ] = sanitize_text_field( $data[ 'description' ] );
212
unset ( $data[ 'description' ] );
213
}
214
wp_update_post( $post_data );
417
$attachments = array();
418
419
foreach ( $file_object as $file ) {
420
+ $uploaded[ 'title' ] = sanitize_title( $uploaded[ 'title' ], 'media' );
421
+ $uploaded[ 'description' ] = sanitize_text_field( $uploaded[ 'description' ] );
422
$attachments[ ] = array(
423
'post_mime_type' => $file[ 'type' ],
424
'guid' => $file[ 'url' ],
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.21
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.22
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.0 + BuddyPress 2.1.1
9
- Stable tag: 3.7.21
10
11
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
@@ -133,6 +133,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
133
134
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.
135
136
= 3.7.21 =
137
* Fixed group featured media
138
@@ -862,8 +865,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
862
863
== Upgrade Notice ==
864
865
- = 3.7.21 =
866
- Requires BuddyPress 1.7 or higher, if using BuddyPress. Fixed group featured media
867
868
== Sponsors ==
869
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.0 + BuddyPress 2.1.1
9
+ Stable tag: 3.7.22
10
11
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
133
134
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.
135
136
+ = 3.7.22 =
137
+ * Validate media before inserting
138
+
139
= 3.7.21 =
140
* Fixed group featured media
141
865
866
== Upgrade Notice ==
867
868
+ = 3.7.22 =
869
+ Requires BuddyPress 1.7 or higher, if using BuddyPress. Validate media before inserting.
870
871
== Sponsors ==
872