mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Bump db_version and add upgrade routine for schema change in [30056].
Fixes #22023. git-svn-id: https://develop.svn.wordpress.org/trunk@30121 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7f5e8bd7e8
commit
5073448de6
@ -442,6 +442,9 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 29630 )
|
||||
upgrade_400();
|
||||
|
||||
if ( $wp_current_db_version < 30056 )
|
||||
upgrade_410();
|
||||
|
||||
maybe_disable_link_manager();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
@ -1328,6 +1331,18 @@ function upgrade_400() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute changes made in WordPress 4.1.0.
|
||||
*
|
||||
* @since 4.1.0
|
||||
*/
|
||||
function upgrade_410() {
|
||||
global $wp_current_db_version, $wpdb;
|
||||
if ( $wp_current_db_version < 30056 ) {
|
||||
add_clean_index( $wpdb->terms, 'slug' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute network level changes
|
||||
*
|
||||
|
||||
@ -11,7 +11,7 @@ $wp_version = '4.1-alpha-30000-src';
|
||||
*
|
||||
* @global int $wp_db_version
|
||||
*/
|
||||
$wp_db_version = 29630;
|
||||
$wp_db_version = 30056;
|
||||
|
||||
/**
|
||||
* Holds the TinyMCE version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user