Skip to content

Commit

Permalink
Fix twitter button.
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Aug 19, 2020
1 parent 6b67205 commit e5ce7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kunoichi/ThemeCustomizer/Models/Brand/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ protected function get_priority() {

public function get_url( $post = null ) {
return $this->add_query_params( [
'url' => rawurlencode( get_permalink( $post ) ),
'text' => rawurlencode( get_the_title( $post ) ),
'url' => get_permalink( $post ),
'text' => get_the_title( $post ),
], 'https://twitter.com/share', $post );
}

Expand Down

0 comments on commit e5ce7d9

Please sign in to comment.