Skip to content

Commit e5c270b

Browse files
committed
1 parent 6e5cb57 commit e5c270b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/collection/class-interactions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function add_comment( $activity ) {
5454

5555
$commentdata = array(
5656
'comment_post_ID' => $comment_post_id,
57-
'comment_author' => \esc_attr( $meta['name'] ),
57+
'comment_author' => isset( $meta['name'] ) ? \esc_attr( $meta['name'] ) : \esc_attr( $meta['preferredUsername'] ),
5858
'comment_author_url' => \esc_url_raw( $meta['url'] ),
5959
'comment_content' => \addslashes( $activity['object']['content'] ),
6060
'comment_type' => 'comment',

0 commit comments

Comments
 (0)