wp update 6.6.1
This commit is contained in:
@@ -24,7 +24,13 @@
|
||||
function get_comment_author( $comment_id = 0 ) {
|
||||
$comment = get_comment( $comment_id );
|
||||
|
||||
$comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : (string) $comment_id;
|
||||
if ( ! empty( $comment->comment_ID ) ) {
|
||||
$comment_id = $comment->comment_ID;
|
||||
} elseif ( is_scalar( $comment_id ) ) {
|
||||
$comment_id = (string) $comment_id;
|
||||
} else {
|
||||
$comment_id = '';
|
||||
}
|
||||
|
||||
if ( empty( $comment->comment_author ) ) {
|
||||
$user = ! empty( $comment->user_id ) ? get_userdata( $comment->user_id ) : false;
|
||||
|
||||
Reference in New Issue
Block a user