wp-content/themes/twentynineteen/inc/helper-functions.php:39Returns true if comment is by author of the post.
$commentWP_Comment|nulloptionalnullboolfunction twentynineteen_is_comment_by_post_author( $comment = null ) { if ( is_object( $comment ) && $comment->user_id > 0 ) { $user = get_userdata( $comment->user_id ); $post = get_post( $comment->comment_post_ID ); if ( ! empty( $user ) && ! empty( $post ) ) { return $comment->user_id === $post->post_author; } } return false;}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentynineteen/inc/helper-functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.