Version Description
- Fixed file uploading via iPhone.
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- includes/bp-media-actions.php +2 -1
- includes/bp-media-class-wordpress.php +2 -1
- includes/bp-media-template-functions.php +1 -0
- loader.php +2 -2
- readme.txt +5 -2
includes/bp-media-actions.php
CHANGED
@@ -36,7 +36,8 @@ function bp_media_handle_uploads() {
|
|
36 |
try {
|
37 |
$title = isset($_POST['bp_media_title']) ? ($_POST['bp_media_title'] != "") ? $_POST['bp_media_title'] : pathinfo($_FILES['bp_media_file']['name'], PATHINFO_FILENAME) : pathinfo($_FILES['bp_media_file']['name'], PATHINFO_FILENAME);
|
38 |
$entry = $bp_media_entry->add_media($title, array_key_exists('bp_media_description',$_POST)?$_POST['bp_media_description']:'');
|
39 |
-
$bp->{BP_MEDIA_SLUG}->messages['updated'][]
|
|
|
40 |
} catch (Exception $e) {
|
41 |
$bp->{BP_MEDIA_SLUG}->messages['error'][] = $e->getMessage();
|
42 |
}
|
36 |
try {
|
37 |
$title = isset($_POST['bp_media_title']) ? ($_POST['bp_media_title'] != "") ? $_POST['bp_media_title'] : pathinfo($_FILES['bp_media_file']['name'], PATHINFO_FILENAME) : pathinfo($_FILES['bp_media_file']['name'], PATHINFO_FILENAME);
|
38 |
$entry = $bp_media_entry->add_media($title, array_key_exists('bp_media_description',$_POST)?$_POST['bp_media_description']:'');
|
39 |
+
if(!isset($bp->{BP_MEDIA_SLUG}->messages['updated'][0]))
|
40 |
+
$bp->{BP_MEDIA_SLUG}->messages['updated'][0] = __('Upload Successful', 'bp-media');
|
41 |
} catch (Exception $e) {
|
42 |
$bp->{BP_MEDIA_SLUG}->messages['error'][] = $e->getMessage();
|
43 |
}
|
includes/bp-media-class-wordpress.php
CHANGED
@@ -107,6 +107,7 @@ class BP_Media_Host_Wordpress {
|
|
107 |
bp_media_init_count(bp_loggedin_user_id());
|
108 |
switch ($type) {
|
109 |
case 'video/mp4' :
|
|
|
110 |
$type = 'video';
|
111 |
include_once(trailingslashit(BP_MEDIA_PLUGIN_DIR) . 'includes/lib/getid3/getid3.php');
|
112 |
try {
|
@@ -184,7 +185,7 @@ class BP_Media_Host_Wordpress {
|
|
184 |
wp_delete_post($post_id, true);
|
185 |
unlink($file);
|
186 |
$activity_content = false;
|
187 |
-
throw new Exception(__('Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3 and .mp4.', 'bp-media'));
|
188 |
}
|
189 |
$attachment_id = wp_insert_attachment($attachment, $file, $post_id);
|
190 |
if (!is_wp_error($attachment_id)) {
|
107 |
bp_media_init_count(bp_loggedin_user_id());
|
108 |
switch ($type) {
|
109 |
case 'video/mp4' :
|
110 |
+
case 'video/quicktime' :
|
111 |
$type = 'video';
|
112 |
include_once(trailingslashit(BP_MEDIA_PLUGIN_DIR) . 'includes/lib/getid3/getid3.php');
|
113 |
try {
|
185 |
wp_delete_post($post_id, true);
|
186 |
unlink($file);
|
187 |
$activity_content = false;
|
188 |
+
throw new Exception(__('Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4.', 'bp-media'));
|
189 |
}
|
190 |
$attachment_id = wp_insert_attachment($attachment, $file, $post_id);
|
191 |
if (!is_wp_error($attachment_id)) {
|
includes/bp-media-template-functions.php
CHANGED
@@ -16,6 +16,7 @@ function bp_media_show_upload_form() {
|
|
16 |
if($bp_media_options['videos_enabled']){
|
17 |
$allowed['type'][] = 'video';
|
18 |
$allowed['accept'][] = 'video/mp4';
|
|
|
19 |
}
|
20 |
$allowed = apply_filters('bp_media_allowed_filter',$allowed);
|
21 |
$accept = implode(',',$allowed['accept']);
|
16 |
if($bp_media_options['videos_enabled']){
|
17 |
$allowed['type'][] = 'video';
|
18 |
$allowed['accept'][] = 'video/mp4';
|
19 |
+
$allowed['accept'][] = 'video/quicktime';
|
20 |
}
|
21 |
$allowed = apply_filters('bp_media_allowed_filter',$allowed);
|
22 |
$accept = implode(',',$allowed['accept']);
|
loader.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BuddyPress Media Component
|
4 |
Plugin URI: http://rtcamp.com/buddypress-media/
|
5 |
Description: This component adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
-
Version: 2.1.
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
*/
|
@@ -12,7 +12,7 @@ Author URI: http://rtcamp.com
|
|
12 |
define('BP_MEDIA_IS_INSTALLED', 1);
|
13 |
|
14 |
/* Constant to store the current version of the BP Media Plugin. */
|
15 |
-
define('BP_MEDIA_VERSION', '2.1.
|
16 |
|
17 |
/* A constant to be used as base for other URLs throughout the plugin */
|
18 |
define('BP_MEDIA_PLUGIN_DIR', dirname(__FILE__));
|
3 |
Plugin Name: BuddyPress Media Component
|
4 |
Plugin URI: http://rtcamp.com/buddypress-media/
|
5 |
Description: This component adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
+
Version: 2.1.3
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
*/
|
12 |
define('BP_MEDIA_IS_INSTALLED', 1);
|
13 |
|
14 |
/* Constant to store the current version of the BP Media Plugin. */
|
15 |
+
define('BP_MEDIA_VERSION', '2.1.3');
|
16 |
|
17 |
/* A constant to be used as base for other URLs throughout the plugin */
|
18 |
define('BP_MEDIA_PLUGIN_DIR', dirname(__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: 3.3.2
|
8 |
Tested up to: 3.4.2
|
9 |
-
Stable tag: 2.1.
|
10 |
|
11 |
Adds multimedia features to your BuddyPress based social network. Support mobile devices.& audio/video conversion.
|
12 |
|
@@ -56,6 +56,9 @@ Please visit [BuddyPress Media Component's Features page](http://rtcamp.com/budd
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
|
|
|
|
|
|
59 |
= 2.1.2 =
|
60 |
* Changed some default values and normalized all files with end of file as line feed only
|
61 |
|
@@ -90,4 +93,4 @@ Please visit [BuddyPress Media Component's Features page](http://rtcamp.com/budd
|
|
90 |
* HTML5 Video Tag Support (with fallback)
|
91 |
|
92 |
== Upgrade Notice ==
|
93 |
-
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: 3.3.2
|
8 |
Tested up to: 3.4.2
|
9 |
+
Stable tag: 2.1.3
|
10 |
|
11 |
Adds multimedia features to your BuddyPress based social network. Support mobile devices.& audio/video conversion.
|
12 |
|
56 |
|
57 |
== Changelog ==
|
58 |
|
59 |
+
= 2.1.3 =
|
60 |
+
* Fixed file uploading via iPhone.
|
61 |
+
|
62 |
= 2.1.2 =
|
63 |
* Changed some default values and normalized all files with end of file as line feed only
|
64 |
|
93 |
* HTML5 Video Tag Support (with fallback)
|
94 |
|
95 |
== Upgrade Notice ==
|
96 |
+
Fixed file uploading via iPhone.
|