rtMedia for WordPress, BuddyPress and bbPress - Version 2.2.1

Version Description

  • Removed anonymous function since its not supported in PHP versions < 5.3
Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

includes/bp-media-class-wordpress.php CHANGED
@@ -394,10 +394,7 @@ class BP_Media_Host_Wordpress {
394
  function show_comment_form_wordpress(){
395
  query_posts('attachment_id='.$this->id);
396
  while(have_posts()): the_post();
397
- add_action('comment_form', function() {
398
- global $bp_media_current_entry;
399
- echo '<input type="hidden" name="redirect_to" value="'.$bp_media_current_entry->get_url().'">' ;
400
- });
401
  comments_template();
402
  endwhile;
403
  }
394
  function show_comment_form_wordpress(){
395
  query_posts('attachment_id='.$this->id);
396
  while(have_posts()): the_post();
397
+ add_action('comment_form','bp_media_wp_comment_form_mod');
 
 
 
398
  comments_template();
399
  endwhile;
400
  }
includes/bp-media-functions.php CHANGED
@@ -224,4 +224,9 @@ function bp_media_update_album_activity($album,$current_time = true,$delete_medi
224
  }
225
  }
226
  }
 
 
 
 
 
227
  ?>
224
  }
225
  }
226
  }
227
+
228
+ function bp_media_wp_comment_form_mod() {
229
+ global $bp_media_current_entry;
230
+ echo '<input type="hidden" name="redirect_to" value="'.$bp_media_current_entry->get_url().'">' ;
231
+ }
232
  ?>
includes/js/bp-media-uploader.js CHANGED
@@ -101,7 +101,7 @@ jQuery(document).ready(function(){
101
  bp_media_uploader.bind('UploadComplete',function(){
102
  var new_location = window.location.href;
103
  if(new_location.search('/media/')>0){
104
- new_location = new_location.replace('media','albums');
105
  if(bp_media_album_selected>0)
106
  new_location = new_location.concat(bp_media_album_selected);
107
  else
101
  bp_media_uploader.bind('UploadComplete',function(){
102
  var new_location = window.location.href;
103
  if(new_location.search('/media/')>0){
104
+ new_location = new_location.replace('/media/','/albums/');
105
  if(bp_media_album_selected>0)
106
  new_location = new_location.concat(bp_media_album_selected);
107
  else
loader.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: BuddyPress Media
4
  Plugin URI: http://rtcamp.com/buddypress-media/
5
  Description: This plugin 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.2
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.2');
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
4
  Plugin URI: http://rtcamp.com/buddypress-media/
5
  Description: This plugin 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.2.1
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.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__));
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.2
10
 
11
  Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
@@ -73,6 +73,9 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
73
 
74
  Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/ "Visit BuddyPress Media's Features page") to get some details about fuure releases.
75
 
 
 
 
76
  = 2.2 =
77
  * Album Support for Users
78
  * Ajaxified pagination to make it easy to view large albums.
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.2.1
10
 
11
  Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
73
 
74
  Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/ "Visit BuddyPress Media's Features page") to get some details about fuure releases.
75
 
76
+ = 2.2.1 =
77
+ * Removed anonymous function since its not supported in PHP versions < 5.3
78
+
79
  = 2.2 =
80
  * Album Support for Users
81
  * Ajaxified pagination to make it easy to view large albums.