[wp-trac] Re: [WordPress Trac] #6867: single_tag_title() prints empty string on non-latin1 data

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 17 17:38:58 GMT 2008


#6867: single_tag_title() prints empty string on non-latin1 data
----------------------+-----------------------------------------------------
 Reporter:  reinkim   |        Owner:  ryan    
     Type:  defect    |       Status:  reopened
 Priority:  high      |    Milestone:  2.6.1   
Component:  Template  |      Version:  2.6     
 Severity:  critical  |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by smreg):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 I am a Chinese user.

 Actually, this bug does exist in 2.6 and does not exist 2.3, 2.5 and
 2.5.1. The bug behaves exactly like the reinkim said, but I do not confirm
 it will occur in Korean in 2.6.

 Here are the details and example:

 1. When the tag slug is English and the tag name is Chinese. It behaves
 normally.
 Example URL: http://fairyfish.net/tag/database/

 2. When the tag slug and the tag name are both Chinese. The
 single_tag_title() returns nothing.
 Example URL:
 http://www.clearstudy.cn/archives/tag/%e8%87%aa%e5%ae%9a%e4%b9%89
 (the tag is '自定义')

 In condition 2, get_query_var() functions abnormal. When
 single_tag_title() calls it, get_query_var('tag_id') will return a 0.

 I am not a PHP developer, I hope you can fix it. Thanks.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6867#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list