Version Description
- Fix group featured media
- Fix database warning on first time install
Download this release
Release Info
Developer | rtcamp |
Plugin | ![]() |
Version | 3.7.23 |
Comparing to | |
See all releases |
Code changes from version 3.7.22 to 3.7.23
app/main/RTMedia.php
CHANGED
@@ -87,7 +87,7 @@ class RTMedia
|
|
87 |
add_action('init', array($this, 'check_global_album'));
|
88 |
add_action('plugins_loaded', array($this, 'init'), 20);
|
89 |
add_action('plugins_loaded', array($this, 'load_translation'), 10);
|
90 |
-
add_action('plugins_loaded', array($this, 'admin_init'));
|
91 |
add_action('wp_enqueue_scripts', array('RTMediaGalleryShortcode', 'register_scripts'));
|
92 |
add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts_styles'), 999);
|
93 |
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
|
87 |
add_action('init', array($this, 'check_global_album'));
|
88 |
add_action('plugins_loaded', array($this, 'init'), 20);
|
89 |
add_action('plugins_loaded', array($this, 'load_translation'), 10);
|
90 |
+
add_action('plugins_loaded', array($this, 'admin_init'), 30);
|
91 |
add_action('wp_enqueue_scripts', array('RTMediaGalleryShortcode', 'register_scripts'));
|
92 |
add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts_styles'), 999);
|
93 |
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
|
app/main/controllers/media/RTMediaGroupFeatured.php
CHANGED
@@ -78,7 +78,13 @@ class RTMediaGroupFeatured extends RTMediaUserInteraction {
|
|
78 |
|
79 |
function get(){
|
80 |
if ( false === $this->group_id ){
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
$this->group_id = $this->media->context_id;
|
83 |
} else {
|
84 |
return false;
|
78 |
|
79 |
function get(){
|
80 |
if ( false === $this->group_id ){
|
81 |
+
global $groups_template;
|
82 |
+
if( !empty( $groups_template->group ) ){
|
83 |
+
$group_id = bp_get_group_id();
|
84 |
+
if ( !empty( $group_id ) ){
|
85 |
+
$this->group_id = $group_id;
|
86 |
+
}
|
87 |
+
} else if ( isset( $this->media ) && isset( $this->media->context_id ) ){
|
88 |
$this->group_id = $this->media->context_id;
|
89 |
} else {
|
90 |
return false;
|
app/main/controllers/media/RTMediaMedia.php
CHANGED
@@ -202,7 +202,7 @@ 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 |
-
$data[ 'media_title' ] =
|
206 |
$post_data[ 'post_title' ] = $data[ 'media_title' ];
|
207 |
$post_data[ 'post_name' ] = $data[ 'media_title' ];
|
208 |
}
|
@@ -417,7 +417,7 @@ class RTMediaMedia {
|
|
417 |
$attachments = array();
|
418 |
|
419 |
foreach ( $file_object as $file ) {
|
420 |
-
$uploaded[ 'title' ] =
|
421 |
$uploaded[ 'description' ] = sanitize_text_field( $uploaded[ 'description' ] );
|
422 |
$attachments[ ] = array(
|
423 |
'post_mime_type' => $file[ 'type' ],
|
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' ] = wp_kses( $data[ 'media_title' ], wp_kses_allowed_html() );
|
206 |
$post_data[ 'post_title' ] = $data[ 'media_title' ];
|
207 |
$post_data[ 'post_name' ] = $data[ 'media_title' ];
|
208 |
}
|
417 |
$attachments = array();
|
418 |
|
419 |
foreach ( $file_object as $file ) {
|
420 |
+
$uploaded[ 'title' ] = wp_kses( $uploaded[ 'title' ], wp_kses_allowed_html() );
|
421 |
$uploaded[ 'description' ] = sanitize_text_field( $uploaded[ 'description' ] );
|
422 |
$attachments[ ] = array(
|
423 |
'post_mime_type' => $file[ 'type' ],
|
app/main/controllers/media/RTMediaTags.php
CHANGED
@@ -162,7 +162,7 @@ class RTMediaTags {
|
|
162 |
|
163 |
$this->duration_info = array( 'duration' => isset( $data[ 'playtime_string' ] ) ? ( $data[ 'playtime_string' ] ) : '-:--', );
|
164 |
|
165 |
-
if ( ! in_array( $path_parts[ 'extension' ], $array_ext ) ){
|
166 |
$this->data = isset( $data[ 'tags' ] ) ? array_intersect_key( $data[ 'tags' ][ 'id3v2' ], array_flip( $this->tags ) ) : array();
|
167 |
}
|
168 |
|
162 |
|
163 |
$this->duration_info = array( 'duration' => isset( $data[ 'playtime_string' ] ) ? ( $data[ 'playtime_string' ] ) : '-:--', );
|
164 |
|
165 |
+
if ( ! in_array( $path_parts[ 'extension' ], $array_ext ) && ! empty( $data[ 'tags' ][ 'id3v2' ] ) ){
|
166 |
$this->data = isset( $data[ 'tags' ] ) ? array_intersect_key( $data[ 'tags' ][ 'id3v2' ], array_flip( $this->tags ) ) : array();
|
167 |
}
|
168 |
|
app/main/controllers/template/rt-template-functions.php
CHANGED
@@ -2144,7 +2144,7 @@ function get_music_cover_art( $file, $id ) {
|
|
2144 |
$mime = explode( "/", $image_mime );
|
2145 |
|
2146 |
$thumb_upload_info = wp_upload_bits( $title_info . "." . $mime[ sizeof( $mime ) - 1 ], null, $image_info['data'] );
|
2147 |
-
if ( is_array( $thumb_upload_info ) && $thumb_upload_info[ 'url' ]
|
2148 |
$mediaObj->model->update( array( 'cover_art' => $thumb_upload_info[ 'url' ] ), array( 'id' => $id ) );
|
2149 |
|
2150 |
return $thumb_upload_info[ 'url' ];
|
2144 |
$mime = explode( "/", $image_mime );
|
2145 |
|
2146 |
$thumb_upload_info = wp_upload_bits( $title_info . "." . $mime[ sizeof( $mime ) - 1 ], null, $image_info['data'] );
|
2147 |
+
if ( is_array( $thumb_upload_info ) && !empty( $thumb_upload_info[ 'url' ] ) ){
|
2148 |
$mediaObj->model->update( array( 'cover_art' => $thumb_upload_info[ 'url' ] ), array( 'id' => $id ) );
|
2149 |
|
2150 |
return $thumb_upload_info[ '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.
|
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.23
|
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.
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
@@ -133,6 +133,10 @@ 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.22 =
|
137 |
* Validate media before inserting
|
138 |
|
@@ -865,8 +869,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
865 |
|
866 |
== Upgrade Notice ==
|
867 |
|
868 |
-
= 3.7.
|
869 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress.
|
870 |
|
871 |
== Sponsors ==
|
872 |
|
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.23
|
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.23 =
|
137 |
+
* Fix group featured media
|
138 |
+
* Fix database warning on first time install
|
139 |
+
|
140 |
= 3.7.22 =
|
141 |
* Validate media before inserting
|
142 |
|
869 |
|
870 |
== Upgrade Notice ==
|
871 |
|
872 |
+
= 3.7.23 =
|
873 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix group featured media and fix database warnings on first time install
|
874 |
|
875 |
== Sponsors ==
|
876 |
|