Changeset 688
- Timestamp:
- Mar 1, 2011, 11:51:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r680 r688 599 599 $text = str_replace(']]>', ']]>', $text); 600 600 $text = strip_tags($text); 601 $is_almost_ascii = ($xpress_config->ascii_judged_rate < round(@(mb_strlen($text, $blog_encoding) / strlen($text)) * 100)) ? true : false; 601 if (function_exists('mb_strlen') && function_exists('mb_substr')){ 602 $is_almost_ascii = ($xpress_config->ascii_judged_rate < round(@(mb_strlen($text, $blog_encoding) / strlen($text)) * 100)) ? true : false; 603 } else { 604 $is_almost_ascii = true; 605 } 602 606 if($is_almost_ascii) { 603 607 $words = explode(' ', $text, $excerpt_length_word + 1);
Note: See TracChangeset
for help on using the changeset viewer.