Version Description
Requires BuddyPress 1.7 or higher, if using BuddyPress. Bug fixes for backward compatibility.
=
Download this release
Release Info
Developer | rtcamp |
Plugin | ![]() |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.4
- app/admin/RTMediaAdmin.php +3 -4
- app/helper/RTMediaSupport.php +13 -3
- app/main/controllers/api/RTMediaJsonApiFunctions.php +1 -1
- app/services/RTMediaEncoding.php +10 -6
- index.php +1 -1
- readme.txt +6 -3
app/admin/RTMediaAdmin.php
CHANGED
@@ -34,10 +34,9 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
34 |
|
35 |
$this->rtmedia_support = new RTMediaSupport();
|
36 |
add_action( 'wp_ajax_rtmedia_select_request', array( $this->rtmedia_support, 'get_form' ), 1 );
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
}, 1 );
|
41 |
add_action( 'wp_ajax_rtmedia_submit_request', array( $this->rtmedia_support, 'submit_request' ), 1 );
|
42 |
|
43 |
add_action( 'wp_ajax_rtmedia_linkback', array( $this, 'linkback' ), 1 ); //fixme : is it being used ?
|
34 |
|
35 |
$this->rtmedia_support = new RTMediaSupport();
|
36 |
add_action( 'wp_ajax_rtmedia_select_request', array( $this->rtmedia_support, 'get_form' ), 1 );
|
37 |
+
|
38 |
+
add_action( 'wp_ajax_rtmedia_cancel_request', array( $this->rtmedia_support, 'rtmedia_cancel_request' ), 1 );
|
39 |
+
|
|
|
40 |
add_action( 'wp_ajax_rtmedia_submit_request', array( $this->rtmedia_support, 'submit_request' ), 1 );
|
41 |
|
42 |
add_action( 'wp_ajax_rtmedia_linkback', array( $this, 'linkback' ), 1 ); //fixme : is it being used ?
|
app/helper/RTMediaSupport.php
CHANGED
@@ -78,6 +78,15 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
78 |
</div>
|
79 |
<?php
|
80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
/**
|
83 |
* Render support.
|
@@ -610,8 +619,9 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
610 |
}
|
611 |
$message .= '</body>
|
612 |
</html>';
|
613 |
-
|
614 |
-
|
|
|
615 |
$headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
|
616 |
$support_email = 'support@rtcamp.com';
|
617 |
if ( wp_mail( $support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace( array(
|
@@ -642,4 +652,4 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
642 |
}
|
643 |
}
|
644 |
|
645 |
-
}
|
78 |
</div>
|
79 |
<?php
|
80 |
}
|
81 |
+
|
82 |
+
public function rtmedia_cancel_request() {
|
83 |
+
do_settings_sections( 'rtmedia-support' );
|
84 |
+
die();
|
85 |
+
}
|
86 |
+
|
87 |
+
public function rtmedia_mail_content_type() {
|
88 |
+
return 'text/html';
|
89 |
+
}
|
90 |
|
91 |
/**
|
92 |
* Render support.
|
619 |
}
|
620 |
$message .= '</body>
|
621 |
</html>';
|
622 |
+
|
623 |
+
add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
|
624 |
+
|
625 |
$headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
|
626 |
$support_email = 'support@rtcamp.com';
|
627 |
if ( wp_mail( $support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace( array(
|
652 |
}
|
653 |
}
|
654 |
|
655 |
+
}
|
app/main/controllers/api/RTMediaJsonApiFunctions.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
use MongoDB\BSON\Type;
|
3 |
|
4 |
/**
|
5 |
* @author Umesh Kumar<umeshsingla05@gmail.com>
|
1 |
<?php
|
2 |
+
//use MongoDB\BSON\Type;
|
3 |
|
4 |
/**
|
5 |
* @author Umesh Kumar<umeshsingla05@gmail.com>
|
app/services/RTMediaEncoding.php
CHANGED
@@ -170,8 +170,8 @@ class RTMediaEncoding {
|
|
170 |
foreach ( $users as $user ) {
|
171 |
$admin_email_ids[] = $user->user_email;
|
172 |
}
|
173 |
-
|
174 |
-
|
175 |
wp_mail( $admin_email_ids, $subject, sprintf( $message, size_format( $usage_details[ $this->api_key ]->used, 2 ), size_format( $usage_details[ $this->api_key ]->remaining, 2 ), size_format( $usage_details[ $this->api_key ]->total, 2 ) ) );
|
176 |
}
|
177 |
update_site_option( 'rtmedia-encoding-usage-limit-mail', 1 );
|
@@ -189,14 +189,18 @@ class RTMediaEncoding {
|
|
189 |
foreach ( $users as $user ) {
|
190 |
$admin_email_ids[] = $user->user_email;
|
191 |
}
|
192 |
-
|
193 |
-
|
194 |
wp_mail( $admin_email_ids, $subject, sprintf( $message, size_format( $usage_details[ $this->api_key ]->used, 2 ), 0, size_format( $usage_details[ $this->api_key ]->total, 2 ) ) );
|
195 |
}
|
196 |
update_site_option( 'rtmedia-encoding-usage-limit-mail', 1 );
|
197 |
}
|
198 |
}
|
199 |
|
|
|
|
|
|
|
|
|
200 |
public function save_api_key() {
|
201 |
if ( isset( $_GET['api_key_updated'] ) && sanitize_text_field( wp_unslash( $_GET['api_key_updated'] ) ) ) {
|
202 |
if ( is_multisite() ) {
|
@@ -607,8 +611,8 @@ class RTMediaEncoding {
|
|
607 |
foreach ( $users as $user ) {
|
608 |
$admin_email_ids[] = $user->user_email;
|
609 |
}
|
610 |
-
|
611 |
-
|
612 |
wp_mail( $admin_email_ids, $subject, $message );
|
613 |
}
|
614 |
echo esc_html( $flag );
|
170 |
foreach ( $users as $user ) {
|
171 |
$admin_email_ids[] = $user->user_email;
|
172 |
}
|
173 |
+
|
174 |
+
add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
|
175 |
wp_mail( $admin_email_ids, $subject, sprintf( $message, size_format( $usage_details[ $this->api_key ]->used, 2 ), size_format( $usage_details[ $this->api_key ]->remaining, 2 ), size_format( $usage_details[ $this->api_key ]->total, 2 ) ) );
|
176 |
}
|
177 |
update_site_option( 'rtmedia-encoding-usage-limit-mail', 1 );
|
189 |
foreach ( $users as $user ) {
|
190 |
$admin_email_ids[] = $user->user_email;
|
191 |
}
|
192 |
+
|
193 |
+
add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
|
194 |
wp_mail( $admin_email_ids, $subject, sprintf( $message, size_format( $usage_details[ $this->api_key ]->used, 2 ), 0, size_format( $usage_details[ $this->api_key ]->total, 2 ) ) );
|
195 |
}
|
196 |
update_site_option( 'rtmedia-encoding-usage-limit-mail', 1 );
|
197 |
}
|
198 |
}
|
199 |
|
200 |
+
public function rtmedia_mail_content_type() {
|
201 |
+
return 'text/html';
|
202 |
+
}
|
203 |
+
|
204 |
public function save_api_key() {
|
205 |
if ( isset( $_GET['api_key_updated'] ) && sanitize_text_field( wp_unslash( $_GET['api_key_updated'] ) ) ) {
|
206 |
if ( is_multisite() ) {
|
611 |
foreach ( $users as $user ) {
|
612 |
$admin_email_ids[] = $user->user_email;
|
613 |
}
|
614 |
+
|
615 |
+
add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
|
616 |
wp_mail( $admin_email_ids, $subject, $message );
|
617 |
}
|
618 |
echo esc_html( $flag );
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: https://rtmedia.io/?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: 4.0.
|
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: https://rtmedia.io/?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: 4.0.4
|
8 |
Author: rtCamp
|
9 |
Text Domain: buddypress-media
|
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: 4.5.3
|
9 |
-
Stable tag: 4.0.
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
@@ -138,6 +138,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
141 |
= 4.0.3 [Jul 05, 2016] =
|
142 |
* Fix filter_input warning for media in group creation
|
143 |
* Fix warning for video encoding
|
@@ -1179,8 +1182,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
1179 |
|
1180 |
== Upgrade Notice ==
|
1181 |
|
1182 |
-
= 4.0.
|
1183 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress. Bug fixes.
|
1184 |
|
1185 |
== Sponsors ==
|
1186 |
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.6
|
8 |
Tested up to: 4.5.3
|
9 |
+
Stable tag: 4.0.4
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
+
= 4.0.4 [Jul 08, 2016] =
|
142 |
+
* Backward compability for PHP 5.2
|
143 |
+
|
144 |
= 4.0.3 [Jul 05, 2016] =
|
145 |
* Fix filter_input warning for media in group creation
|
146 |
* Fix warning for video encoding
|
1182 |
|
1183 |
== Upgrade Notice ==
|
1184 |
|
1185 |
+
= 4.0.4 =
|
1186 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Bug fixes for backward compatibility.
|
1187 |
|
1188 |
== Sponsors ==
|
1189 |
|