Support » How-To and Troubleshooting » The maximum size of a %postname% (or Post Slug?)

The maximum size of a %postname% (or Post Slug?)

  • I wonder what is the maximum size of the %postname% (or Post Slug, wich is correct?) field?
    I’ve got a post wich have a subject of 42 symbols wich should be translated into the %xy notation in order to be process correct by the browser, but it translate to the fewer post slug.
    Here is the subject: “?•Ñ??»?¸ ?²Ñ‹ ?²Ñ?Ñ‚Ñ€?µÑ‚?¸?»?¸ ?¼?¸?»?¸Ñ†?¸?¾?½?µÑ€?°. ?˜?½Ñ?тру?ºÑ†?¸Ñ?.”
    Here is the Post slug generated: “%d0%b5%d1%81%d0%bb%d0%b8-%d0%b2%d1%8b-%d0%b2%d1%81%d1%82%d1%80%d0%b5%d1%82%d0%b8%d0%bb%d0%b8-%d0%bc%d0%b8%d0%bb%d0%b8%d1%86%d0%b8%d0%be%d0%bd%d0%b5%d1%80%d0%b0-%d0%b8%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%”
    As you can see the post slug just interrupted by ‘%’. I suppose it’s a bug or smth.
    WP 1.3-a4, from the 6th of October downloaded from nightles directory.
    PS. Sorry for bad english… :/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Enter the post-slug that you want to appear instead.

    well… the problem is that Post Slug is 200 _chars_ long, and should be 200 _symbols_ long. Symbol is not a char!!!
    It’s 21st centure on the yard and we’re all still thinking in terms of the 20th 🙁

    Feature request submitted as a bug 347 (http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000347)

    Moderator Matt Mullenweg


    Mysql VARCHAR is multi-byte aware, why not store the characters directly and encode/decode them on the fly? That may have performance implications though.

    Moderator Ryan Boren


    WordPress Dev

    In that case, we’d pretty much be getting rid of the nicename field in the DB and sanitizing the title on the fly. If someone drops in a plugin that changes how titles are sanitized, old links will change.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The maximum size of a %postname% (or Post Slug?)’ is closed to new replies.