mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Formatting: Correctly encode ASCII characters in post slugs.
Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn. git-svn-id: https://develop.svn.wordpress.org/trunk@52457 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5142,7 +5142,7 @@ function _truncate_post_slug( $slug, $length = 200 ) {
|
||||
if ( $decoded_slug === $slug ) {
|
||||
$slug = substr( $slug, 0, $length );
|
||||
} else {
|
||||
$slug = utf8_uri_encode( $decoded_slug, $length );
|
||||
$slug = utf8_uri_encode( $decoded_slug, $length, true );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user