upgrade_300() - WordPress 函数参考中文文档

返回介绍

upgrade_300()

发布于 2017-09-11 字数1326 浏览 772 评论 0

upgrade_300()

Execute changes made in WordPress 3.0.


描述


源代码

File: wp-admin/includes/upgrade.php

		}
		refresh_blog_details( $wpdb->blogid );
	}
}

/**
 * Execute changes made in WordPress 2.9.
 *
 * @ignore
 * @since 2.9.0
 *
 * @global int $wp_current_db_version
 */
function upgrade_290() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 11958 ) {
		// Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion
		if ( get_option( 'thread_comments_depth' ) == '1' ) {
			update_option( 'thread_comments_depth', 2 );
			update_option( 'thread_comments', 0 );
		}
	}
}

/**
 * Execute changes made in WordPress 3.0.
 *
 * @ignore
 * @since 3.0.0
 *
 * @global int  $wp_current_db_version
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_300() {
	global $wp_current_db_version, $wpdb;

更新日志

Version 描述
3.0.0 Introduced.

User Contributed Notes

上一篇:upgrade_290()

下一篇:upgrade_330()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!