[Plugin: Verve Meta Boxes] Installation improvement: set correct character set and collation
-
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 ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Verve Meta Boxes] Installation improvement: set correct character set and collation’ is closed to new replies.