当前位置: 首页>>代码示例>>PHP>>正文


PHP upgrade_250函数代码示例

本文整理汇总了PHP中upgrade_250函数的典型用法代码示例。如果您正苦于以下问题:PHP upgrade_250函数的具体用法?PHP upgrade_250怎么用?PHP upgrade_250使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了upgrade_250函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: upgrade_all

/**
 * Functions to be called in install and upgrade scripts.
 *
 * {@internal Missing Long Description}}
 *
 * @since unknown
 */
function upgrade_all()
{
    global $wp_current_db_version, $wp_db_version, $wp_rewrite;
    $wp_current_db_version = __get_option('db_version');
    // We are up-to-date.  Nothing to do.
    if ($wp_db_version == $wp_current_db_version) {
        return;
    }
    // If the version is not set in the DB, try to guess the version.
    if (empty($wp_current_db_version)) {
        $wp_current_db_version = 0;
        // If the template option exists, we have 1.5.
        $template = __get_option('template');
        if (!empty($template)) {
            $wp_current_db_version = 2541;
        }
    }
    if ($wp_current_db_version < 6039) {
        upgrade_230_options_table();
    }
    populate_options();
    if ($wp_current_db_version < 2541) {
        upgrade_100();
        upgrade_101();
        upgrade_110();
        upgrade_130();
    }
    if ($wp_current_db_version < 3308) {
        upgrade_160();
    }
    if ($wp_current_db_version < 4772) {
        upgrade_210();
    }
    if ($wp_current_db_version < 4351) {
        upgrade_old_slugs();
    }
    if ($wp_current_db_version < 5539) {
        upgrade_230();
    }
    if ($wp_current_db_version < 6124) {
        upgrade_230_old_tables();
    }
    if ($wp_current_db_version < 7499) {
        upgrade_250();
    }
    if ($wp_current_db_version < 7935) {
        upgrade_252();
    }
    if ($wp_current_db_version < 8201) {
        upgrade_260();
    }
    if ($wp_current_db_version < 8989) {
        upgrade_270();
    }
    if ($wp_current_db_version < 10360) {
        upgrade_280();
    }
    if ($wp_current_db_version < 11958) {
        upgrade_290();
    }
    if ($wp_current_db_version < 14138) {
        upgrade_300();
    }
    maybe_disable_automattic_widgets();
    update_option('db_version', $wp_db_version);
    update_option('db_upgraded', true);
}
开发者ID:beaucollins,项目名称:wp,代码行数:74,代码来源:upgrade.php

示例2: upgrade_all

/**
 * Functions to be called in install and upgrade scripts.
 *
 * Contains conditional checks to determine which upgrade scripts to run,
 * based on database version and WP version being updated-to.
 *
 * @ignore
 * @since 1.0.1
 *
 * @global int $wp_current_db_version
 * @global int $wp_db_version
 */
function upgrade_all()
{
    global $wp_current_db_version, $wp_db_version;
    $wp_current_db_version = __get_option('db_version');
    // We are up-to-date. Nothing to do.
    if ($wp_db_version == $wp_current_db_version) {
        return;
    }
    // If the version is not set in the DB, try to guess the version.
    if (empty($wp_current_db_version)) {
        $wp_current_db_version = 0;
        // If the template option exists, we have 1.5.
        $template = __get_option('template');
        if (!empty($template)) {
            $wp_current_db_version = 2541;
        }
    }
    if ($wp_current_db_version < 6039) {
        upgrade_230_options_table();
    }
    populate_options();
    if ($wp_current_db_version < 2541) {
        upgrade_100();
        upgrade_101();
        upgrade_110();
        upgrade_130();
    }
    if ($wp_current_db_version < 3308) {
        upgrade_160();
    }
    if ($wp_current_db_version < 4772) {
        upgrade_210();
    }
    if ($wp_current_db_version < 4351) {
        upgrade_old_slugs();
    }
    if ($wp_current_db_version < 5539) {
        upgrade_230();
    }
    if ($wp_current_db_version < 6124) {
        upgrade_230_old_tables();
    }
    if ($wp_current_db_version < 7499) {
        upgrade_250();
    }
    if ($wp_current_db_version < 7935) {
        upgrade_252();
    }
    if ($wp_current_db_version < 8201) {
        upgrade_260();
    }
    if ($wp_current_db_version < 8989) {
        upgrade_270();
    }
    if ($wp_current_db_version < 10360) {
        upgrade_280();
    }
    if ($wp_current_db_version < 11958) {
        upgrade_290();
    }
    if ($wp_current_db_version < 15260) {
        upgrade_300();
    }
    if ($wp_current_db_version < 19389) {
        upgrade_330();
    }
    if ($wp_current_db_version < 20080) {
        upgrade_340();
    }
    if ($wp_current_db_version < 22422) {
        upgrade_350();
    }
    if ($wp_current_db_version < 25824) {
        upgrade_370();
    }
    if ($wp_current_db_version < 26148) {
        upgrade_372();
    }
    if ($wp_current_db_version < 26691) {
        upgrade_380();
    }
    if ($wp_current_db_version < 29630) {
        upgrade_400();
    }
    if ($wp_current_db_version < 33055) {
        upgrade_430();
    }
    if ($wp_current_db_version < 33056) {
//.........这里部分代码省略.........
开发者ID:atimmer,项目名称:wordpress-develop-mirror,代码行数:101,代码来源:upgrade.php

示例3: upgrade_all

/**
 * Functions to be called in install and upgrade scripts.
 *
 * Contains conditional checks to determine which upgrade scripts to run,
 * based on database version and WP version being updated-to.
 *
 * @since 1.0.1
 *
 * @return null If no update is necessary, null.
 */
function upgrade_all()
{
    global $wp_current_db_version, $wp_db_version;
    $wp_current_db_version = __get_option('db_version');
    // We are up-to-date. Nothing to do.
    if ($wp_db_version == $wp_current_db_version) {
        return;
    }
    // If the version is not set in the DB, try to guess the version.
    if (empty($wp_current_db_version)) {
        $wp_current_db_version = 0;
        // If the template option exists, we have 1.5.
        $template = __get_option('template');
        if (!empty($template)) {
            $wp_current_db_version = 2541;
        }
    }
    if ($wp_current_db_version < 6039) {
        upgrade_230_options_table();
    }
    populate_options();
    if ($wp_current_db_version < 2541) {
        upgrade_100();
        upgrade_101();
        upgrade_110();
        upgrade_130();
    }
    if ($wp_current_db_version < 3308) {
        upgrade_160();
    }
    if ($wp_current_db_version < 4772) {
        upgrade_210();
    }
    if ($wp_current_db_version < 4351) {
        upgrade_old_slugs();
    }
    if ($wp_current_db_version < 5539) {
        upgrade_230();
    }
    if ($wp_current_db_version < 6124) {
        upgrade_230_old_tables();
    }
    if ($wp_current_db_version < 7499) {
        upgrade_250();
    }
    if ($wp_current_db_version < 7935) {
        upgrade_252();
    }
    if ($wp_current_db_version < 8201) {
        upgrade_260();
    }
    if ($wp_current_db_version < 8989) {
        upgrade_270();
    }
    if ($wp_current_db_version < 10360) {
        upgrade_280();
    }
    if ($wp_current_db_version < 11958) {
        upgrade_290();
    }
    if ($wp_current_db_version < 15260) {
        upgrade_300();
    }
    if ($wp_current_db_version < 19389) {
        upgrade_330();
    }
    if ($wp_current_db_version < 20080) {
        upgrade_340();
    }
    if ($wp_current_db_version < 22422) {
        upgrade_350();
    }
    if ($wp_current_db_version < 25824) {
        upgrade_370();
    }
    if ($wp_current_db_version < 26148) {
        upgrade_372();
    }
    if ($wp_current_db_version < 26691) {
        upgrade_380();
    }
    if ($wp_current_db_version < 29630) {
        upgrade_400();
    }
    // Don't harsh my mellow. upgrade_422() must be called before
    // upgrade_420() to catch bad comments prior to any auto-expansion of
    // MySQL column widths.
    if ($wp_current_db_version < 31534) {
        upgrade_422();
    }
//.........这里部分代码省略.........
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:101,代码来源:upgrade.php

示例4: upgrade_all

function upgrade_all() {
	global $wp_current_db_version, $wp_db_version, $wp_rewrite;
	$wp_current_db_version = __get_option('db_version');

	// We are up-to-date.  Nothing to do.
	if ( $wp_db_version == $wp_current_db_version )
		return;

	// If the version is not set in the DB, try to guess the version.
	if ( empty($wp_current_db_version) ) {
		$wp_current_db_version = 0;

		// If the template option exists, we have 1.5.
		$template = __get_option('template');
		if ( !empty($template) )
			$wp_current_db_version = 2541;
	}

	if ( $wp_current_db_version < 6039 )
		upgrade_230_options_table();

	populate_options();

	if ( $wp_current_db_version < 2541 ) {
		upgrade_100();
		upgrade_101();
		upgrade_110();
		upgrade_130();
	}

	if ( $wp_current_db_version < 3308 )
		upgrade_160();

	if ( $wp_current_db_version < 4772 )
		upgrade_210();

	if ( $wp_current_db_version < 4351 )
		upgrade_old_slugs();

	if ( $wp_current_db_version < 5539 )
		upgrade_230();

	if ( $wp_current_db_version < 6124 )
		upgrade_230_old_tables();

	if ( $wp_current_db_version < 7499 )
		upgrade_250();

	if ( $wp_current_db_version < 7796 )
		upgrade_251();

	maybe_disable_automattic_widgets();

	$wp_rewrite->flush_rules();

	update_option('db_version', $wp_db_version);
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:57,代码来源:upgrade.php


注:本文中的upgrade_250函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。