[wp-trac] Re: [WordPress Trac] #9576: Plugin Installer; Limit desciption length in search results

WordPress Trac wp-trac at lists.automattic.com
Sat May 16 07:06:08 GMT 2009


#9576: Plugin Installer; Limit desciption length in search results
------------------------------+---------------------------------------------
 Reporter:  DD32              |        Type:  defect (bug)   
   Status:  new               |    Priority:  normal         
Milestone:  2.8               |   Component:  Upgrade/Install
  Version:  2.8               |    Severity:  minor          
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by dd32):

 > attachment 9576.diff added
  * Based off wp_html_excerpt()
  * Strips HTML
  * Limits to 400char (multibyte safe), and adds an horizontal ellipsis(…)
 if its shortened
    * Doesnt use mb_strlen(), So its not entirely mb nice, any mb strings
 of > 200char & < 400char will end up with an ellipsis when its not needed
 - WordPress doesnt currently have a compat function for it.
  * Finally, re-converts multiple lines
    * And strips consecutive lines/leading/trailing lines

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9576#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list