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

WordPress Trac noreply at wordpress.org
Wed Aug 21 20:37:37 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        |   Keywords:  needs-patch
--------------------------+-----------------------------
 If you localize your custom post type rewrite slugs in non-latin language
 and pass it to `wp_safe_redirect` it will strip all non-latin characters
 and attempt to redirect to stripped location.

 This can be easely reproduced if your custom post type supports comments
 and you submit a comment from post type single page as `wp_safe_redirect`
 is called after comment submission.

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


More information about the wp-trac mailing list