本文整理汇总了PHP中upgrade_430_fix_comments函数的典型用法代码示例。如果您正苦于以下问题:PHP upgrade_430_fix_comments函数的具体用法?PHP upgrade_430_fix_comments怎么用?PHP upgrade_430_fix_comments使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了upgrade_430_fix_comments函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: upgrade_430
/**
* Executes changes made in WordPress 4.3.0.
*
* @since 4.3.0
*
* @global int $wp_current_db_version Current version.
* @global wpdb $wpdb WordPress database abstraction object.
*/
function upgrade_430()
{
global $wp_current_db_version, $wpdb;
if ($wp_current_db_version < 32364) {
upgrade_430_fix_comments();
}
// Shared terms are split in a separate process.
if ($wp_current_db_version < 32814) {
update_option('finished_splitting_shared_terms', 0);
wp_schedule_single_event(time() + 1 * MINUTE_IN_SECONDS, 'wp_split_shared_term_batch');
}
if ($wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset) {
if (is_multisite()) {
$tables = $wpdb->tables('blog');
} else {
$tables = $wpdb->tables('all');
if (!wp_should_upgrade_global_tables()) {
$global_tables = $wpdb->tables('global');
$tables = array_diff_assoc($tables, $global_tables);
}
}
foreach ($tables as $table) {
maybe_convert_table_to_utf8mb4($table);
}
}
}
开发者ID:ryan2407,项目名称:Vision,代码行数:34,代码来源:upgrade.php
示例2: upgrade_430
/**
* Execute changes made in WordPress 4.3.0.
*
* @since 4.3.0
*
* @global int $wp_current_db_version
* @global wpdb $wpdb
*/
function upgrade_430()
{
global $wp_current_db_version, $wpdb;
if ($wp_current_db_version < 32364) {
upgrade_430_fix_comments();
}
if ($wp_current_db_version < 32814) {
split_all_shared_terms();
}
if ($wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset) {
if (is_multisite()) {
$tables = $wpdb->tables('blog');
} else {
$tables = $wpdb->tables('all');
if (!wp_should_upgrade_global_tables()) {
$global_tables = $wpdb->tables('global');
$tables = array_diff_assoc($tables, $global_tables);
}
}
foreach ($tables as $table) {
maybe_convert_table_to_utf8mb4($table);
}
}
}
开发者ID:natefancher,项目名称:WordPress,代码行数:32,代码来源:upgrade.php
示例3: upgrade_430
/**
* Execute changes made in WordPress 4.3.0.
*
* @since 4.3.0
*
* @global int $wp_current_db_version
* @global wpdb $wpdb
*/
function upgrade_430()
{
global $wp_current_db_version, $wpdb;
if ($wp_current_db_version < 32364) {
upgrade_430_fix_comments();
}
if ($wp_current_db_version < 32814) {
split_all_shared_terms();
}
}
开发者ID:nasrulhazim,项目名称:WordPress,代码行数:18,代码来源:upgrade.php
示例4: upgrade_430
/**
* Executes changes made in WordPress 4.3.0.
*
* @since 4.3.0
*
* @global int $wp_current_db_version Current version.
* @global wpdb $wpdb WordPress database abstraction object.
*/
function upgrade_430()
{
global $wp_current_db_version, $wpdb;
if ($wp_current_db_version < 32364) {
upgrade_430_fix_comments();
}
// Shared terms are split in a separate process.
if ($wp_current_db_version < 32814) {
update_option('finished_splitting_shared_terms', 0);
wp_schedule_single_event(time() + 1 * MINUTE_IN_SECONDS, 'wp_split_shared_term_batch');
}
}
开发者ID:leonardopires,项目名称:projectnami,代码行数:20,代码来源:upgrade.php
注:本文中的upgrade_430_fix_comments函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论