Version Description
- Added support for media-count on albums
- fixes bbPress conflict in_array() expects parameter 2
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- includes/bp-media-admin.php +1 -3
- includes/bp-media-class-album.php +1 -1
- loader.php +11 -1
- readme.txt +6 -2
includes/bp-media-admin.php
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
<?php
|
2 |
if(version_compare('2.0',get_option('bp_media_db_version','1.0'),'>')){
|
3 |
-
$query = new WP_Query(array('post_type'=>'bp_media','posts_per_page'=>1));
|
4 |
-
if($query->found_posts>0)
|
5 |
add_action('admin_notices', 'bp_media_upgrade_db_notice');
|
6 |
}
|
7 |
|
@@ -627,4 +625,4 @@ class bp_media_request_activecollab{
|
|
627 |
}
|
628 |
}
|
629 |
|
630 |
-
?>
|
1 |
<?php
|
2 |
if(version_compare('2.0',get_option('bp_media_db_version','1.0'),'>')){
|
|
|
|
|
3 |
add_action('admin_notices', 'bp_media_upgrade_db_notice');
|
4 |
}
|
5 |
|
625 |
}
|
626 |
}
|
627 |
|
628 |
+
?>
|
includes/bp-media-class-album.php
CHANGED
@@ -142,7 +142,7 @@ class BP_Media_Album{
|
|
142 |
<a href="<?php echo $this->url ?>" title="<?php echo $this->description ?>">
|
143 |
<?php echo $this->thumbnail; ?>
|
144 |
</a>
|
145 |
-
<h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php echo $this->description ?>"><?php echo $this->name ?></
|
146 |
</li><?php
|
147 |
}
|
148 |
|
142 |
<a href="<?php echo $this->url ?>" title="<?php echo $this->description ?>">
|
143 |
<?php echo $this->thumbnail; ?>
|
144 |
</a>
|
145 |
+
<h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php echo $this->description ?>"><?php echo $this->name;?></a><?php echo ' ('.count($this->media_entries).')'; ?></h3>
|
146 |
</li><?php
|
147 |
}
|
148 |
|
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 |
*/
|
@@ -70,6 +70,16 @@ function bp_media_activate() {
|
|
70 |
delete_option('bp_media_remove_linkback');
|
71 |
}
|
72 |
update_option('bp_media_options',$bp_media_options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
74 |
|
75 |
register_activation_hook(__FILE__, 'bp_media_activate');
|
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.4
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
*/
|
70 |
delete_option('bp_media_remove_linkback');
|
71 |
}
|
72 |
update_option('bp_media_options',$bp_media_options);
|
73 |
+
|
74 |
+
|
75 |
+
$bpmquery = new WP_Query(array('post_type'=>'bp_media','posts_per_page'=>1));
|
76 |
+
if($bpmquery->found_posts > 0){
|
77 |
+
update_option('bp_media_db_version', '1.0');
|
78 |
+
}else{
|
79 |
+
update_option('bp_media_db_version',BP_MEDIA_DB_VERSION);
|
80 |
+
}
|
81 |
+
|
82 |
+
|
83 |
}
|
84 |
|
85 |
register_activation_hook(__FILE__, 'bp_media_activate');
|
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 |
|
@@ -71,7 +71,11 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
|
|
71 |
|
72 |
== Changelog ==
|
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
|
|
|
|
|
|
|
|
|
75 |
|
76 |
= 2.2.3 =
|
77 |
* Added more verification to check whether the object being used is available or not.
|
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.4
|
10 |
|
11 |
Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
|
12 |
|
71 |
|
72 |
== Changelog ==
|
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 future releases.
|
75 |
+
|
76 |
+
= 2.2.4 =
|
77 |
+
* Added support for media-count on albums
|
78 |
+
* fixes bbPress conflict in_array() expects parameter 2
|
79 |
|
80 |
= 2.2.3 =
|
81 |
* Added more verification to check whether the object being used is available or not.
|