WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. aim1159
    Member
    Posted 9 years ago #

    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... :/

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Enter the post-slug that you want to appear instead.

  3. aim1159
    Member
    Posted 9 years ago #

    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 :(

  4. aim1159
    Member
    Posted 9 years ago #

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

  5. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    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.

  6. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.