function et_pb_get_the_author_posts_link(){
global $authordata, $post;

// Fallback for preview if ( empty( $authordata ) && isset( $post->post_author ) ) { $authordata = get_userdata( $post->post_author );
}

// If $authordata is empty, don’t continue if ( empty( $authordata ) ) { return;
}
if ( function_exists( ‘coauthors_posts_links’ ) ) {
$link = sprintf(
‘,
esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), esc_attr( sprintf( __( ‘Posts by %s’, ‘et_builder’ ), get_the_author() ) ), coauthors_posts_links( null, null, null, null, false )
);
} else {
$link = sprintf(
‘,
esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), esc_attr( sprintf( __( ‘Posts by %s’, ‘et_builder’ ), get_the_author() ) ), get_the_author()
);
}
return apply_filters( ‘the_author_posts_link’, $link );
}