Version Description
Requires BuddyPress 1.7 or higher, if using BuddyPress. Added new filters, update chinese translations, fix rtMedia add-on broken images.
=
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.9.5 |
Comparing to | |
See all releases |
Code changes from version 3.9.4 to 3.9.5
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -575,6 +575,8 @@ jQuery( function ( $ ) {
|
|
575 |
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-user-album-list' ).find( ":selected" ).val();
|
576 |
else if ( $( '#rtmedia-uploader-form .rtmedia-current-album' ).length > 0 )
|
577 |
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-current-album' ).val();
|
|
|
|
|
578 |
} );
|
579 |
|
580 |
uploaderObj.uploader.bind( 'FileUploaded', function ( up, file, res ) {
|
575 |
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-user-album-list' ).find( ":selected" ).val();
|
576 |
else if ( $( '#rtmedia-uploader-form .rtmedia-current-album' ).length > 0 )
|
577 |
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-current-album' ).val();
|
578 |
+
|
579 |
+
rtMediaHook.call( 'rtmedia_js_before_file_upload', [up, file] );
|
580 |
} );
|
581 |
|
582 |
uploaderObj.uploader.bind( 'FileUploaded', function ( up, file, res ) {
|
app/helper/RTMediaAddon.php
CHANGED
@@ -105,7 +105,7 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
|
|
105 |
*/
|
106 |
public function plugins_content( $args = '' ) {
|
107 |
$img_src = RTMEDIA_URL . 'app/assets/admin/img/';
|
108 |
-
$rtcamp_upload_url = 'https://rtcamp.
|
109 |
$addons = array(
|
110 |
array(
|
111 |
'title' => __( 'SEO', 'buddypress-media' ),
|
105 |
*/
|
106 |
public function plugins_content( $args = '' ) {
|
107 |
$img_src = RTMEDIA_URL . 'app/assets/admin/img/';
|
108 |
+
$rtcamp_upload_url = 'https://rtcamp-481283.c.cdn77.org/wp-content/uploads/';
|
109 |
$addons = array(
|
110 |
array(
|
111 |
'title' => __( 'SEO', 'buddypress-media' ),
|
app/helper/RTMediaModel.php
CHANGED
@@ -55,7 +55,10 @@ class RTMediaModel extends RTDBModel {
|
|
55 |
$where .= " AND {$this->table_name}.blog_id = '" . get_current_blog_id() . "' ";
|
56 |
}
|
57 |
$temp = 65;
|
58 |
-
|
|
|
|
|
|
|
59 |
if ( 'meta_query' == strtolower( $colname ) ){
|
60 |
foreach ( $colvalue as $meta_query ) {
|
61 |
if ( ! isset( $meta_query['compare'] ) ){
|
55 |
$where .= " AND {$this->table_name}.blog_id = '" . get_current_blog_id() . "' ";
|
56 |
}
|
57 |
$temp = 65;
|
58 |
+
|
59 |
+
$columns = apply_filters( 'rtmedia-model-query-columns', $columns, $count_flag );
|
60 |
+
|
61 |
+
foreach ( (array) $columns as $colname => $colvalue ) {
|
62 |
if ( 'meta_query' == strtolower( $colname ) ){
|
63 |
foreach ( $colvalue as $meta_query ) {
|
64 |
if ( ! isset( $meta_query['compare'] ) ){
|
app/main/controllers/template/rt-template-functions.php
CHANGED
@@ -1634,7 +1634,7 @@ function rtmedia_user_album_list( $get_all = false, $selected_album_id = false )
|
|
1634 |
}
|
1635 |
}
|
1636 |
}
|
1637 |
-
$option = "$global_option";
|
1638 |
if ( $profile_option != "" ) {
|
1639 |
$option .= "<optgroup label='" . __( "Profile Albums", 'buddypress-media' ) . " ' value = 'profile'>$profile_option</optgroup>";
|
1640 |
}
|
1634 |
}
|
1635 |
}
|
1636 |
}
|
1637 |
+
$option = apply_filters( 'rtmedia_global_albums_in_uploader', "$global_option" );
|
1638 |
if ( $profile_option != "" ) {
|
1639 |
$option .= "<optgroup label='" . __( "Profile Albums", 'buddypress-media' ) . " ' value = 'profile'>$profile_option</optgroup>";
|
1640 |
}
|
app/main/routers/query/RTMediaQuery.php
CHANGED
@@ -571,11 +571,18 @@ class RTMediaQuery {
|
|
571 |
|
572 |
}
|
573 |
}
|
|
|
|
|
574 |
if ( isset( $this->media_query[ 'context_id' ] ) && sizeof( explode( ',', $this->media_query[ 'context_id' ] ) ) > 1 ){
|
575 |
$this->media_query[ 'context_id' ] = array( 'compare' => 'in', 'value' => explode( ',', $this->media_query[ 'context_id' ] ) );
|
576 |
}
|
577 |
}
|
578 |
|
|
|
|
|
|
|
|
|
|
|
579 |
if ( isset( $this->media_query[ 'per_page' ] ) ){
|
580 |
//Do not include per_page in sql query to get media
|
581 |
$this->action_query->per_page_media = intval( $this->media_query[ 'per_page' ] );
|
571 |
|
572 |
}
|
573 |
}
|
574 |
+
|
575 |
+
// Multiple context_id support
|
576 |
if ( isset( $this->media_query[ 'context_id' ] ) && sizeof( explode( ',', $this->media_query[ 'context_id' ] ) ) > 1 ){
|
577 |
$this->media_query[ 'context_id' ] = array( 'compare' => 'in', 'value' => explode( ',', $this->media_query[ 'context_id' ] ) );
|
578 |
}
|
579 |
}
|
580 |
|
581 |
+
// Multiple album_id support
|
582 |
+
if ( isset( $this->media_query[ 'album_id' ] ) && sizeof( explode( ',', $this->media_query[ 'album_id' ] ) ) > 1 ){
|
583 |
+
$this->media_query[ 'album_id' ] = array( 'compare' => 'in', 'value' => explode( ',', $this->media_query[ 'album_id' ] ) );
|
584 |
+
}
|
585 |
+
|
586 |
if ( isset( $this->media_query[ 'per_page' ] ) ){
|
587 |
//Do not include per_page in sql query to get media
|
588 |
$this->action_query->per_page_media = intval( $this->media_query[ 'per_page' ] );
|
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.9.
|
8 |
Author: rtCamp
|
9 |
Text Domain: buddypress-media
|
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.9.5
|
8 |
Author: rtCamp
|
9 |
Text Domain: buddypress-media
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
languages/buddypress-media-zh_CN.mo
CHANGED
Binary file
|
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: 4.4
|
9 |
-
Stable tag: 3.9.
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
@@ -140,6 +140,11 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
|
|
|
|
143 |
= 3.9.4 [Dec 07, 2015] =
|
144 |
* Fixed media slug issue while deleting media
|
145 |
* Added new hook in album gallery template
|
@@ -1110,8 +1115,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
1110 |
|
1111 |
== Upgrade Notice ==
|
1112 |
|
1113 |
-
= 3.9.
|
1114 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress.
|
1115 |
|
1116 |
== Sponsors ==
|
1117 |
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.6
|
8 |
Tested up to: 4.4
|
9 |
+
Stable tag: 3.9.5
|
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.9.5 [Dec 11, 2015] =
|
144 |
+
* Added new filters
|
145 |
+
* Update chinese translations
|
146 |
+
* Fix rtMedia add-on broken images
|
147 |
+
|
148 |
= 3.9.4 [Dec 07, 2015] =
|
149 |
* Fixed media slug issue while deleting media
|
150 |
* Added new hook in album gallery template
|
1115 |
|
1116 |
== Upgrade Notice ==
|
1117 |
|
1118 |
+
= 3.9.5 =
|
1119 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Added new filters, update chinese translations, fix rtMedia add-on broken images.
|
1120 |
|
1121 |
== Sponsors ==
|
1122 |
|