执行WordPress 4.3.0中的注释更改。
原型
upgrade_430_fix_comments()
源文件
路径:wp-admin/includes/upgrade.php
<?php
...
* @ignore
* @since 3.7.0
*
* @global int $wp_current_db_version
*/
function upgrade_370() {
global $wp_current_db_version;
if ( $wp_current_db_version < 25824 )
wp_clear_scheduled_hook( 'wp_auto_updates_maybe_update' );
}
/**
* Execute changes made in WordPress 3.7.2.
*
* @ignore
* @since 3.7.2
* @since 3.8.0
*
* @global int $wp_current_db_version
*/
function upgrade_372() {
global $wp_current_db_version;
if ( $wp_current_db_version < 26148 )
wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
}
/**
* Execute changes made in WordPress 3.8.0.
*
* @ignore
* @since 3.8.0
*
* @global int $wp_current_db_version
*/
function upgrade_380() {
global $wp_current_db_version;
if ( $wp_current_db_version < 26691 ) {
deactivate_plugins( array( 'mp6/mp6.php' ), true );
}
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/upgrade_430_fix_comments/