Version Description
- Fixes bug in featured media that occurred when the featured media was deleted
- Optimises db queries for privacy
Download this release
Release Info
Developer | saurabhshukla |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 2.12.1 |
Comparing to | |
See all releases |
Code changes from version 2.12 to 2.12.1
- app/main/privacy/BPMediaPrivacy.php +1 -2
- app/main/profile/BPMediaFeatured.php +12 -0
- index.php +1 -1
- readme.txt +6 -1
app/main/privacy/BPMediaPrivacy.php
CHANGED
@@ -71,8 +71,7 @@ class BPMediaPrivacy {
|
|
71 |
$installed = true;
|
72 |
else
|
73 |
$installed = false;
|
74 |
-
|
75 |
-
bp_update_option( 'bp_media_privacy_installed', $installed );
|
76 |
return $installed;
|
77 |
}
|
78 |
|
71 |
$installed = true;
|
72 |
else
|
73 |
$installed = false;
|
74 |
+
|
|
|
75 |
return $installed;
|
76 |
}
|
77 |
|
app/main/profile/BPMediaFeatured.php
CHANGED
@@ -122,7 +122,19 @@ class BPMediaFeatured {
|
|
122 |
}
|
123 |
}
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
function content() {
|
|
|
|
|
|
|
126 |
$featured = new BPMediaHostWordpress( $this->featured );
|
127 |
$type = $featured->get_type();
|
128 |
if ( ! $this->valid_type( $type ) ) {
|
122 |
}
|
123 |
}
|
124 |
|
125 |
+
function media_exists($id){
|
126 |
+
global $wpdb;
|
127 |
+
$post_exists = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE id = '" . $id . "'", 'ARRAY_A');
|
128 |
+
if ($post_exists)
|
129 |
+
return true;
|
130 |
+
else
|
131 |
+
return false;
|
132 |
+
}
|
133 |
+
|
134 |
function content() {
|
135 |
+
if(!$this->media_exists($this->featured)){
|
136 |
+
return false;
|
137 |
+
}
|
138 |
$featured = new BPMediaHostWordpress( $this->featured );
|
139 |
$type = $featured->get_type();
|
140 |
if ( ! $this->valid_type( $type ) ) {
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BuddyPress Media
|
4 |
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
5 |
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!
|
6 |
-
Version: 2.12
|
7 |
Author: rtCamp
|
8 |
Text Domain: buddypress-media
|
9 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
3 |
Plugin Name: BuddyPress Media
|
4 |
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
5 |
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!
|
6 |
+
Version: 2.12.1
|
7 |
Author: rtCamp
|
8 |
Text Domain: buddypress-media
|
9 |
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.5 + BuddyPress 1.6
|
8 |
Tested up to: WordPress 3.5 + BuddyPress 1.7
|
9 |
-
Stable tag: 2.12
|
10 |
|
11 |
Adds Photos, Music, Videos & Albums to BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
|
12 |
|
@@ -118,6 +118,11 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
|
|
118 |
== Changelog ==
|
119 |
|
120 |
Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit BuddyPress Media's Features page") to get some details about future releases.
|
|
|
|
|
|
|
|
|
|
|
121 |
= 2.12 =
|
122 |
* Lets users add a featured image/video/audio for their profiles. Can be used to create "Cover Photos" or videos for each user using a template tag.
|
123 |
* Feature sponsored by [Henry Wright](http://profiles.wordpress.org/henrywright-1)
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.5 + BuddyPress 1.6
|
8 |
Tested up to: WordPress 3.5 + BuddyPress 1.7
|
9 |
+
Stable tag: 2.12.1
|
10 |
|
11 |
Adds Photos, Music, Videos & Albums to BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
|
12 |
|
118 |
== Changelog ==
|
119 |
|
120 |
Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit BuddyPress Media's Features page") to get some details about future releases.
|
121 |
+
|
122 |
+
= 2.12.1 =
|
123 |
+
* Fixes bug in featured media that occurred when the featured media was deleted
|
124 |
+
* Optimises db queries for privacy
|
125 |
+
|
126 |
= 2.12 =
|
127 |
* Lets users add a featured image/video/audio for their profiles. Can be used to create "Cover Photos" or videos for each user using a template tag.
|
128 |
* Feature sponsored by [Henry Wright](http://profiles.wordpress.org/henrywright-1)
|