wp core update 6.6
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
function get_comment_author( $comment_id = 0 ) {
|
||||
$comment = get_comment( $comment_id );
|
||||
|
||||
$comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : $comment_id;
|
||||
$comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : (string) $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