-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Largo post social links do not support Guest Authors' Twitter accounts #1117
Comments
this is an urgent issue for WE-87 and should be addressed asap as a hotfix |
The author is a Guest Author with a twitter account set: http://womensenews.org/wp-admin/post.php?post=59538&action=edit But none of this makes sense. https://github.com/INN/Largo/blob/master/inc/post-tags.php#L190
if ( function_exists( 'coauthors_posts_links' ) && !isset( $values['largo_byline_text'] ) ) {
$coauthors = get_coauthors( $post->ID );
$author_twitters = array();
foreach ( $coauthors as $author ) {
if ( isset( $author->twitter ) ) {
$author_twitters[] = $author->twitter;
}
}
if ( count( $author_twitters ) == 1 ) {
$via = '&via=' . esc_attr( largo_twitter_url_to_username( $author_twitters[0] ) );
}
// in the event that there are more than one author twitter accounts, we fall back to the org account
// @link https://github.com/INN/Largo/issues/1088
} else if ( !isset( $values['largo_byline_text'] ) ) {
$user = get_the_author_meta( 'twitter' );
if ( !empty( $user ) ) {
$via = '&via=' . esc_attr( largo_twitter_url_to_username( $user ) );
}
} I've included the Even when setting the post with more than one coauthor, the username output is that of the author, not the org's account. Something is causing it to go to the next option, and there's no rationale for it.
|
…al-links Attempted fixes for #1117, where post_author twitter account is used instead of coauthor
See: http://jira.inn.org/browse/WE-87
If a coauthor has a twitter account, the account used for the "via" text in the "Tweet" button is the twitter account of the person who created the post, not the coauthor.
The text was updated successfully, but these errors were encountered: