WordPress.org

Ready to get started?Download WordPress

Forums

Verve Meta Boxes
Installation improvement: set correct character set and collation (3 posts)

  1. Tubal
    Member
    Posted 3 years ago #

    This plugin does not specify any character set or collation when tables are created in the database so they will take the server's default values. That's not very desirable so in order to be "wp compliant" edit the function "verve_meta_boxes_install" in the verve-meta-boxes.php file like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    As you can see we only added the global variable $charset_collate (used by wp) and then "$charset_collate;" in the CREATE TABLE statements so that tables are created using the same character set and collation as wp does (utf-8 & utf8_general_ci).

    That's all ;)

  2. menaceman
    Member
    Posted 3 years ago #

    Hey Tubal,

    can you plz update this Post? I am strugglin exactly with this problem right now and the [Code moderated as per the Forum Rules. Please use the pastebin] destroyed your super awesome fix!?

    Greetz

  3. Tubal
    Member
    Posted 3 years ago #

    Sure menaceman, here you are: Verve meta boxes charset collation fix

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic