Changeset 34356

Show
Ignore:
Timestamp:
03/11/08 13:50:46 (4 months ago)
Author:
GamerZ
Message:

Fixed snippet_text

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-email/trunk/wp-email.php

    r30797 r34356  
    290290if(!function_exists('snippet_text')) { 
    291291      function snippet_text($text, $length = 0) { 
    292             $text = html_entity_decode($text, ENT_QUOTES); 
    293              if (strlen($text) > $length){        
    294                   return substr($text,0,$length).'...';              
     292            $text = html_entity_decode($text, ENT_QUOTES, get_option('blog_charset')); 
     293             if (strlen($text) > $length) { 
     294                  return htmlentities(substr($text,0,$length), ENT_COMPAT, get_option('blog_charset')).'...'; 
    295295             } else { 
    296                   return $text
     296                  return htmlentities($text, ENT_COMPAT, get_option('blog_charset'))
    297297             } 
    298298      } 
  • wp-email/trunk/wp-email.pot

    r30797 r34356  
    33"Project-Id-Version: WP-EMail 2.30\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2008-02-05 01:57+0800\n" 
     5"PO-Revision-Date: 2008-03-11 21:50+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n"