Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.0.78 |
Comparing to | |
See all releases |
Code changes from version 1.0.77 to 1.0.78
- core/um-filters-commenting.php +26 -0
- index.php +1 -1
- readme.txt +5 -1
core/um-filters-commenting.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/***
|
4 |
+
*** @Control comment author display
|
5 |
+
***/
|
6 |
+
add_filter('get_comment_author_link', 'um_comment_link_to_profile', 10000 );
|
7 |
+
function um_comment_link_to_profile( $return ) {
|
8 |
+
global $comment, $ultimatemember;
|
9 |
+
if ( isset( $comment->user_id ) && !empty( $comment->user_id ) ) {
|
10 |
+
|
11 |
+
if ( isset( $ultimatemember->user->cached_user[ $comment->user_id ] ) && $ultimatemember->user->cached_user[ $comment->user_id ] ) {
|
12 |
+
|
13 |
+
$return = '<a href="'. $ultimatemember->user->cached_user[$comment->user_id]['url'] . '">' . $ultimatemember->user->cached_user[$comment->user_id]['name'] . '</a>';
|
14 |
+
|
15 |
+
} else {
|
16 |
+
|
17 |
+
um_fetch_user($comment->user_id);
|
18 |
+
$ultimatemember->user->cached_user[ $comment->user_id ] = array('url' => um_user_profile_url(), 'name' => um_user('display_name') );
|
19 |
+
$return = '<a href="'. $ultimatemember->user->cached_user[$comment->user_id]['url'] . '">' . $ultimatemember->user->cached_user[$comment->user_id]['name'] . '</a>';
|
20 |
+
um_reset_user();
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
}
|
25 |
+
return $return;
|
26 |
+
}
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
-
Version: 1.0.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
+
Version: 1.0.78
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
|
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
-
Stable Tag: 1.0.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -189,6 +189,10 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
189 |
|
190 |
== Changelog ==
|
191 |
|
|
|
|
|
|
|
|
|
192 |
= 1.0.77: March 10, 2015 =
|
193 |
|
194 |
* New: integration with comments to show user profile link instead of user link (not compatible with all themes)
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
+
Stable Tag: 1.0.78
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 1.0.78: March 10, 2015 =
|
193 |
+
|
194 |
+
* Fixed: important correction from previous version
|
195 |
+
|
196 |
= 1.0.77: March 10, 2015 =
|
197 |
|
198 |
* New: integration with comments to show user profile link instead of user link (not compatible with all themes)
|