[wp-trac] Re: [WordPress Trac] #9055: mb_strcut in wp_html_excerpt seems to count bytes (not characters). Use mb_substr instead?

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 4 21:24:25 GMT 2009


#9055: mb_strcut in wp_html_excerpt seems to count bytes (not characters).  Use
mb_substr instead?
--------------------------------------------+-------------------------------
 Reporter:  demetris                        |        Owner:  nbachiyski
     Type:  defect (bug)                    |       Status:  reopened  
 Priority:  normal                          |    Milestone:  2.8       
Component:  i18n                            |      Version:  2.8       
 Severity:  normal                          |   Resolution:            
 Keywords:  has-patch tested needs-testing  |  
--------------------------------------------+-------------------------------

Comment(by nbachiyski):

 It turns out that {{{_mb_strcut()}}}} works exactly like {{{mb_substr}}}
 and not as {{{mb_strcut}}}. We just need to rename {{{_mb_strcut}}} to
 {{{_mb_substr}}} and make the new compat function use it.

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


More information about the wp-trac mailing list