Changeset 349814
- Timestamp:
- 02/23/2011 02:58:34 PM (15 years ago)
- Location:
- readability/trunk
- Files:
-
- 2 edited
-
readability.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
readability/trunk/readability.php
r344678 r349814 4 4 Plugin URI: http://www.sproject.name/download/wp-readability/ 5 5 Description: Plugin which lets you to show posts in stylish, legible pop-up window, like in Safari. 6 Version: 0.1-beta 36 Version: 0.1-beta4 7 7 Author: Piotr Sochalewski 8 8 Author URI: http://www.sproject.name/ … … 81 81 82 82 // Return only if word count isn't low. 83 if(str_word_count($content) > 100) 83 if(str_word_count($content) > 100) { 84 // Space control 85 // Prevent single character words from residing at the end of a line of text 86 $content = str_ireplace(array('a ', 'i ', 'o ', 'u ', 'w ', 'z '), array('a ', 'i ', 'o ', 'u ', 'w ', 'z '), $content); 84 87 85 88 return <<<END … … 89 92 90 93 END; 94 } 91 95 } 92 96 -
readability/trunk/readme.txt
r344678 r349814 5 5 Requires at least: 2.9 6 6 Tested up to: 3.1 7 Stable tag: 0.1-beta 37 Stable tag: 0.1-beta4 8 8 9 9 == Description == … … 24 24 25 25 == Changelog == 26 27 = 0.1-beta4 = 28 * Added simple space control, which prevents single character words from residing at the end of a line. 26 29 27 30 = 0.1-beta3 =
Note: See TracChangeset
for help on using the changeset viewer.