maybe_convert_table_to_utf8mb4()
maybe_convert_table_to_utf8mb4( string $table )
如果表只包含utf8或utf8mb4列,请将其转换为utf8mb4。
If a table only contains utf8 or utf8mb4 columns, convert it to utf8mb4.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$table | (string) | 必需 | 要转换的表。 |
返回(Return)
(bool)如果表已转换,则为true;如果表未转换,则为false。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.2.0 | wp-admin/includes/upgrade.php:2430 | 2 | 3 |
maybe_convert_table_to_utf8mb4() 为WP2原创文章,链接:https://www.wp2.cn/functions/maybe_convert_table_to_utf8mb4/