Code Duplication    Length = 11-11 lines in 2 locations

wp-admin/includes/upgrade.php 2 locations

@@ 1243-1253 (lines=11) @@
1240
		populate_roles_280();
1241
	if ( is_multisite() ) {
1242
		$start = 0;
1243
		while( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
1244
			foreach ( $rows as $row ) {
1245
				$value = $row->option_value;
1246
				if ( !@unserialize( $value ) )
1247
					$value = stripslashes( $value );
1248
				if ( $value !== $row->option_value ) {
1249
					update_option( $row->option_name, $value );
1250
				}
1251
			}
1252
			$start += 20;
1253
		}
1254
		refresh_blog_details( $wpdb->blogid );
1255
	}
1256
}
@@ 1772-1782 (lines=11) @@
1769
		delete_site_option( 'deactivated_sitewide_plugins' );
1770
1771
		$start = 0;
1772
		while( $rows = $wpdb->get_results( "SELECT meta_key, meta_value FROM {$wpdb->sitemeta} ORDER BY meta_id LIMIT $start, 20" ) ) {
1773
			foreach ( $rows as $row ) {
1774
				$value = $row->meta_value;
1775
				if ( !@unserialize( $value ) )
1776
					$value = stripslashes( $value );
1777
				if ( $value !== $row->meta_value ) {
1778
					update_site_option( $row->meta_key, $value );
1779
				}
1780
			}
1781
			$start += 20;
1782
		}
1783
	}
1784
1785
	// 3.0