[wp-trac] [WordPress Trac] #11244: wp_widget_rss_output with show_summaryshows two ellipses

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 5 20:48:48 UTC 2009


#11244: wp_widget_rss_output with show_summaryshows two ellipses
---------------------------+------------------------------------------------
 Reporter:  aaroncampbell  |        Owner:  westi   
     Type:  defect (bug)   |       Status:  accepted
 Priority:  low            |    Milestone:  3.0     
Component:  Widgets        |      Version:  2.9     
 Severity:  trivial        |   Resolution:          
 Keywords:  has-patch      |  
---------------------------+------------------------------------------------

Comment(by nacin):

 Ah, thanks, I meant to punt this.

 Not sure if this is the best solution either, but the problem is that you
 can't simply remove any [...] or […] that appear in a description.
 They're sometimes used to denote the removal of information in a quote,
 for example, so they might not always be deliberately at the end of a
 description. The patch avoids using regular expressions or multiple substr
 to check if the ellipses appear at the end of the description.

 Then again, a simpler way might just be to check mb_strlen for < 360.

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


More information about the wp-trac mailing list