Version Description
- Fix license page
- Fix direct media upload in activity
- Fix BuddyPress group table error on rtMedia update
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.8.1 |
Comparing to | |
See all releases |
Code changes from version 3.8 to 3.8.1
- app/admin/RTMediaAdmin.php +4 -4
- app/assets/js/rtMedia.backbone.js +1 -1
- app/main/RTMedia.php +6 -2
- index.php +1 -1
- readme.txt +17 -9
app/admin/RTMediaAdmin.php
CHANGED
@@ -705,7 +705,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
705 |
),
|
706 |
)
|
707 |
);
|
708 |
-
if ( has_filter( 'rtmedia_license_tabs' ) ||
|
709 |
$admin_bar->add_menu( array(
|
710 |
'id' => 'rt-media-license',
|
711 |
'parent' => 'rtMedia',
|
@@ -744,7 +744,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
744 |
'rtmedia_page_rtmedia-premium',
|
745 |
);
|
746 |
|
747 |
-
if ( has_filter( 'rtmedia_license_tabs' ) ||
|
748 |
$admin_pages[] = 'rtmedia_page_rtmedia-license';
|
749 |
}
|
750 |
|
@@ -801,7 +801,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
801 |
add_submenu_page( 'rtmedia-settings', __( 'Support', 'rtmedia' ), __( 'Support', 'rtmedia' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
|
802 |
add_submenu_page( 'rtmedia-settings', __( 'Themes', 'rtmedia' ), __( 'Themes', 'rtmedia' ), 'manage_options', 'rtmedia-themes', array( $this, 'theme_page' ) );
|
803 |
add_submenu_page( 'rtmedia-settings', __( 'Hire Us', 'rtmedia' ), __( 'Hire Us', 'rtmedia' ), 'manage_options', 'rtmedia-hire-us', array( $this, 'hire_us_page' ) );
|
804 |
-
if ( has_filter( 'rtmedia_license_tabs' ) ||
|
805 |
add_submenu_page( 'rtmedia-settings', __( 'Licenses', 'rtmedia' ), __( 'Licenses', 'rtmedia' ), 'manage_options', 'rtmedia-license', array( $this, 'license_page' ) );
|
806 |
}
|
807 |
|
@@ -1362,7 +1362,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
1362 |
),
|
1363 |
);
|
1364 |
|
1365 |
-
if ( has_filter( 'rtmedia_license_tabs' ) ||
|
1366 |
$tabs[] = array(
|
1367 |
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-license' ), 'admin.php' ) ) ),
|
1368 |
'name' => __( 'Licenses', 'rtmedia' ),
|
705 |
),
|
706 |
)
|
707 |
);
|
708 |
+
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
|
709 |
$admin_bar->add_menu( array(
|
710 |
'id' => 'rt-media-license',
|
711 |
'parent' => 'rtMedia',
|
744 |
'rtmedia_page_rtmedia-premium',
|
745 |
);
|
746 |
|
747 |
+
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
|
748 |
$admin_pages[] = 'rtmedia_page_rtmedia-license';
|
749 |
}
|
750 |
|
801 |
add_submenu_page( 'rtmedia-settings', __( 'Support', 'rtmedia' ), __( 'Support', 'rtmedia' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
|
802 |
add_submenu_page( 'rtmedia-settings', __( 'Themes', 'rtmedia' ), __( 'Themes', 'rtmedia' ), 'manage_options', 'rtmedia-themes', array( $this, 'theme_page' ) );
|
803 |
add_submenu_page( 'rtmedia-settings', __( 'Hire Us', 'rtmedia' ), __( 'Hire Us', 'rtmedia' ), 'manage_options', 'rtmedia-hire-us', array( $this, 'hire_us_page' ) );
|
804 |
+
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
|
805 |
add_submenu_page( 'rtmedia-settings', __( 'Licenses', 'rtmedia' ), __( 'Licenses', 'rtmedia' ), 'manage_options', 'rtmedia-license', array( $this, 'license_page' ) );
|
806 |
}
|
807 |
|
1362 |
),
|
1363 |
);
|
1364 |
|
1365 |
+
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
|
1366 |
$tabs[] = array(
|
1367 |
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-license' ), 'admin.php' ) ) ),
|
1368 |
'name' => __( 'Licenses', 'rtmedia' ),
|
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -796,7 +796,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
796 |
upl.removeFile( upl.getFile( rfile ) );
|
797 |
} );
|
798 |
|
799 |
-
if( jQuery.trim( jQuery( "#whats-new" ).val() ) != "" ) {
|
800 |
var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
|
801 |
|
802 |
if( allow_upload == false ) {
|
796 |
upl.removeFile( upl.getFile( rfile ) );
|
797 |
} );
|
798 |
|
799 |
+
if( typeof rtmedia_direct_upload_enabled != 'undefined' && rtmedia_direct_upload_enabled == '1' && jQuery.trim( jQuery( "#whats-new" ).val() ) != "" ) {
|
800 |
var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
|
801 |
|
802 |
if( allow_upload == false ) {
|
app/main/RTMedia.php
CHANGED
@@ -156,8 +156,12 @@ class RTMedia {
|
|
156 |
|
157 |
function fix_group_media_privacy() {
|
158 |
//if buddypress is active and groups are enabled
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
161 |
$model = new RTMediaModel();
|
162 |
$sql_group = " UPDATE $model->table_name m join {$wpdb->prefix}bp_groups bp on m.context_id = bp.id SET m.privacy = 0 where m.context = 'group' and bp.status = 'public' and m.privacy <> 80 ";
|
163 |
$wpdb->query( $sql_group );
|
156 |
|
157 |
function fix_group_media_privacy() {
|
158 |
//if buddypress is active and groups are enabled
|
159 |
+
global $wpdb;
|
160 |
+
$table_exist = false;
|
161 |
+
if( $wpdb->query( "SHOW TABLES LIKE '{$wpdb->prefix}bp_groups'" ) ){
|
162 |
+
$table_exist = true;
|
163 |
+
}
|
164 |
+
if ( class_exists( 'BuddyPress' ) && $table_exist ) {
|
165 |
$model = new RTMediaModel();
|
166 |
$sql_group = " UPDATE $model->table_name m join {$wpdb->prefix}bp_groups bp on m.context_id = bp.id SET m.privacy = 0 where m.context = 'group' and bp.status = 'public' and m.privacy <> 80 ";
|
167 |
$wpdb->query( $sql_group );
|
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
|
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.1
|
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.2.3.1
|
9 |
-
Stable tag: 3.8
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
@@ -113,21 +113,29 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
113 |
|
114 |
1. Media Settings
|
115 |
2. Privacy Settings
|
116 |
-
3.
|
117 |
4. Media View
|
118 |
5. Album View
|
119 |
6. Uploader
|
120 |
-
7.
|
121 |
-
8.
|
122 |
-
9. Media
|
123 |
-
10. Media
|
124 |
-
|
125 |
-
12.
|
|
|
|
|
|
|
126 |
|
127 |
== Changelog ==
|
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.8 =
|
132 |
* Removed ZURB Foundation
|
133 |
* Removed FontAwesome fonts and instead used WordPress Dashicons
|
@@ -967,7 +975,7 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
967 |
|
968 |
== Upgrade Notice ==
|
969 |
|
970 |
-
= 3.8 =
|
971 |
Requires BuddyPress 1.7 or higher, if using BuddyPress. Assets updated, media templates updated, admin settings updated and UI changes.
|
972 |
|
973 |
== Sponsors ==
|
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.2.3.1
|
9 |
+
Stable tag: 3.8.1
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
113 |
|
114 |
1. Media Settings
|
115 |
2. Privacy Settings
|
116 |
+
3. BuddyPress Settings
|
117 |
4. Media View
|
118 |
5. Album View
|
119 |
6. Uploader
|
120 |
+
7. Uploader Thumbnails
|
121 |
+
8. Lightbox
|
122 |
+
9. Single Media View
|
123 |
+
10. Media Edit View
|
124 |
+
12. Media Activity
|
125 |
+
12. User Privacy Settings
|
126 |
+
13. Media Size Settings
|
127 |
+
14. Custom CSS settings
|
128 |
+
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
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.
|
133 |
|
134 |
+
= 3.8.1 =
|
135 |
+
* Fix license page
|
136 |
+
* Fix direct media upload in activity
|
137 |
+
* Fix BuddyPress group table error on rtMedia update
|
138 |
+
|
139 |
= 3.8 =
|
140 |
* Removed ZURB Foundation
|
141 |
* Removed FontAwesome fonts and instead used WordPress Dashicons
|
975 |
|
976 |
== Upgrade Notice ==
|
977 |
|
978 |
+
= 3.8.1 =
|
979 |
Requires BuddyPress 1.7 or higher, if using BuddyPress. Assets updated, media templates updated, admin settings updated and UI changes.
|
980 |
|
981 |
== Sponsors ==
|