Multisite: Change WP_Network id property to an integer.

For consistency and developer sanity.

Props flixos90.
Fixes #37050.

Built from https://develop.svn.wordpress.org/trunk@37870


git-svn-id: http://core.svn.wordpress.org/trunk@37811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt
2016-06-26 14:26:29 +00:00
parent c5d9d5cc18
commit 6f3f00ea97
27 changed files with 525 additions and 270 deletions

View File

@@ -552,6 +552,9 @@ function upgrade_all() {
if ( $wp_current_db_version < 36686 )
upgrade_450();
if ( $wp_current_db_version < 37854 )
upgrade_460();
maybe_disable_link_manager();
maybe_disable_automattic_widgets();
@@ -1687,6 +1690,19 @@ function upgrade_450() {
delete_user_setting( 'wplink' );
}
/**
* Executes changes made in WordPress 4.6.0.
*
* @ignore
* @since 4.6.0
*
* @global int $wp_current_db_version Current database version.
* @global wpdb $wpdb WordPress database abstraction object.
*/
function upgrade_460() {
delete_post_meta_by_key( '_post_restored_from' );
}
/**
* Executes network-level upgrade routines.
*