[wp-trac] [WordPress Trac] #10249: Page slug in cyrillic = Error 404 - Not Found!

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 7 21:24:47 UTC 2011


#10249: Page slug in cyrillic = Error 404 - Not Found!
------------------------------------+-----------------------
 Reporter:  kalifi                  |       Owner:  westi
     Type:  defect (bug)            |      Status:  accepted
 Priority:  normal                  |   Milestone:  3.3
Component:  Permalinks              |     Version:  2.7
 Severity:  major                   |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:45 ryan]:
 > $in_string probably should be substituted in.

 I thought of that, but `$wpdb->prepare()` adds slashes to inner quotes:
 {{{
 WHERE post_name IN
 ('%d0%ba%d0%b8%d1%80%d0%be\',\'%d0%ba%d0%b8%d0%ba%d0%b8%d1%80%d0%be')
 }}}
 And if we omit them in `implode()`, they are not added back:
 {{{
 WHERE post_name IN
 ('%d0%ba%d0%b8%d1%80%d0%be,%d0%ba%d0%b8%d0%ba%d0%b8%d1%80%d0%be')
 }}}
 Am I missing something?

 Trying to modify `prepare()` now to use %r, as per your second comment.

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


More information about the wp-trac mailing list