Changeset 1359241
- Timestamp:
- 02/26/2016 10:07:26 PM (10 years ago)
- Location:
- click-tweet/trunk
- Files:
-
- 2 edited
-
click-and-tweet.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
click-tweet/trunk/click-and-tweet.php
r1356073 r1359241 4 4 * Plugin URI: http://spacestud.io 5 5 * Description: Quote text in your WordPress posts for easy sharing on twitter. 6 * Version: 0.8. 36 * Version: 0.8.4 7 7 * Author: Space Studio 8 8 * Author URI: http://spacestud.io … … 57 57 * @var string 58 58 */ 59 protected $version = '0.8. 3';59 protected $version = '0.8.4'; 60 60 61 61 /** … … 712 712 private function autoTruncate($text, $username, $url, $hashtag) 713 713 { 714 if(empty($this->settings['use_auto_truncate'])) return $text; 715 714 716 $more = "..."; 715 717 $moreLength = strlen($more); … … 724 726 $x = $hashtagLength + $viaLength + $usernameLength + $urlLength + $moreLength; 725 727 726 if(isset($this->settings['use_auto_truncate']) && ($this->settings['use_auto_truncate'] == 1)) { 727 if($totalLength > 140) { 728 $text = wp_html_excerpt($text, $totalLength - 140); 729 $y = 140 - $x; 730 $text = wp_html_excerpt($text, $y - 3, $more); 731 } 728 if($totalLength > 140) { 729 $text = wp_html_excerpt($text, 140); 730 $y = strlen($text) - $x; 731 $text = wp_html_excerpt($text, $y - 3, $more); 732 732 } 733 733 -
click-tweet/trunk/readme.txt
r1356075 r1359241 4 4 Author Url: http://spacestud.io/ 5 5 Requires at least: 3.8 6 Tested up to: 4.4. 16 Tested up to: 4.4.3 7 7 Stable tag: trunk 8 8 License: GNU Version 2 or Any Later Version … … 22 22 Read the documentation here: 23 23 24 [Documentation](https://space-studio.gitbooks.io/click-tweet-plugin/content/) 24 **[Documentation](https://space-studio.gitbooks.io/click-tweet-plugin/content/)** 25 25 26 26 == Installation == … … 47 47 48 48 == Changelog == 49 = 0.8.4 = 50 * Made an adjustment to the auto truncate calculation. 51 49 52 = 0.8.3 = 50 53 * Added a way to remove tweets from the popover.
Note: See TracChangeset
for help on using the changeset viewer.