[wp-trac] [WordPress Trac] #9598: get_comment_reply_link() Fix for non english slug

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 15:36:34 GMT 2009


#9598: get_comment_reply_link() Fix for non english slug
--------------------------+-------------------------------------------------
 Reporter:  ramiy         |       Owner:  ryan                                 
     Type:  defect (bug)  |      Status:  new                                  
 Priority:  high          |   Milestone:  2.7.2                                
Component:  Permalinks    |     Version:  2.7.1                                
 Severity:  critical      |    Keywords:  permalinks, comments, bugs, urlencode
--------------------------+-------------------------------------------------
 '''File:''' wp-includes/comment-template.php

 '''Function:''' get_comment_reply_link

 '''Old:''' $link = '<a rel="nofollow" href="' . site_url('wp-
 login.php?redirect_to=' .  get_permalink()) . '">' . $login_text . '</a>';

 '''New:''' $link = '<a rel="nofollow" href="' . site_url('wp-
 login.php?redirect_to=' .  urlencode(get_permalink())) . '">' .
 $login_text . '</a>';

 The "urlencode(get_permalink())" fixes the bug in "redirect_to" link when
 using non english chrecters in post slug.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9598>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list