[wp-trac] [WordPress Trac] #25113: non-latin CPT rewrite slugs fail `wp_safe_redirect`

WordPress Trac noreply at wordpress.org
Wed Aug 21 21:09:57 UTC 2013


#25113: non-latin CPT rewrite slugs fail `wp_safe_redirect`
--------------------------+------------------------------
 Reporter:  entr          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------
Changes (by entr):

 * keywords:  needs-patch reporter-feedback => needs-patch


Comment:

 Yes, with a rewrite set as:

 {{{
 ..
 'rewrite' => array( 'slug' => 'продукт', 'with_front' => false ), //BG
 localization for `product` (cyrillic)
 ..
 }}}

 `wp_sanitize_redirect` returns
 `http://blogdomain.com//post_name`
 instead of
 `http://blogdomain.com/продукт/post_name`
 which in my case causes infinite loop

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


More information about the wp-trac mailing list