UTF8 slug character limit

  • Unknown's avatar

    I wasn’t so sure about posting this issue to the “Ideas” forum, but I want to address the following issue to WP team. For utf8 characters (say Arabic, Hebrew etc.) the post slugs (i.e blogname.com/example-of-slug-for-post) are too short. WordPress cuts characters and it is impossible to have a slug with ~6 words. The only workaround in this case is editing the core functions, e.g.:
    in wp-includes/formatting.php
    $title = utf8_uri_encode($title, 200);
    and in wp-includes/post.php
    $alt_post_name = substr( $slug, 0, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix";
    In addition, we have to edit the database structure (wp_posts).
    And with every wordpress update it is gone. Can you please make it longer? Or better allow the user to set the max length in config (define some constant).

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘UTF8 slug character limit’ is closed to new replies.