mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed comment author link in commetns block
This commit is contained in:
@@ -20,6 +20,7 @@ if ( ! class_exists( 'um\frontend\User_Profile' ) ) {
|
||||
public function __construct() {
|
||||
add_action( 'template_redirect', array( $this, 'handle_edit_screen' ), 10000 );
|
||||
add_filter( 'get_edit_user_link', array( $this, 'get_um_edit_user_link' ), 10, 2 );
|
||||
add_filter('get_comment_author_url', array( $this, 'get_comment_author_url' ), 10, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,5 +73,9 @@ if ( ! class_exists( 'um\frontend\User_Profile' ) ) {
|
||||
public function get_um_edit_user_link( $link, $user_id ) {
|
||||
return um_edit_profile_url( $user_id );
|
||||
}
|
||||
|
||||
public function get_comment_author_url( $comment_author_url, $comment_id, $comment ) {
|
||||
return um_user_profile_url( $comment->user_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user