Skip to content

Commit

Permalink
Sharing: removed the tweet count from offical Twitter buttons due to …
Browse files Browse the repository at this point in the history
…count API deprcation

See #2747 for more details.
  • Loading branch information
zinigor committed Nov 9, 2015
1 parent 7565d82 commit 37a8221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sharedaddy/sharing-sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ public function get_display( $post ) {
if ( $this->smart ) {
$share_url = $this->get_share_url( $post->ID );
$post_title = $this->get_share_title( $post->ID );
return '<div class="twitter_button"><iframe allowtransparency="true" frameborder="0" scrolling="no" src="' . esc_url( $this->http() . '://platform.twitter.com/widgets/tweet_button.html?url=' . rawurlencode( $share_url ) . '&counturl=' . rawurlencode( get_permalink( $post->ID ) ) . '&count=horizontal&text=' . rawurlencode( $post_title . ':' ) . $via ) . '" style="width:101px; height:20px;"></iframe></div>';
return '<div class="twitter_button"><iframe allowtransparency="true" frameborder="0" scrolling="no" src="' . esc_url( $this->http() . '://platform.twitter.com/widgets/tweet_button.html?url=' . rawurlencode( $share_url ) . '&count=none&text=' . rawurlencode( $post_title . ':' ) . $via ) . '" style="width:55px; height:20px;"></iframe></div>';
} else {
if (
/**
Expand Down

0 comments on commit 37a8221

Please sign in to comment.