Code Duplication    Length = 4-4 lines in 2 locations

wp-includes/ms-functions.php 2 locations

@@ 257-260 (lines=4) @@
254
		$post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d", $user_id ) );
255
		$link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $user_id ) );
256
257
		if ( ! empty( $post_ids ) ) {
258
			$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_author = %d WHERE post_author = %d", $reassign, $user_id ) );
259
			array_walk( $post_ids, 'clean_post_cache' );
260
		}
261
262
		if ( ! empty( $link_ids ) ) {
263
			$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d", $reassign, $user_id ) );
@@ 262-265 (lines=4) @@
259
			array_walk( $post_ids, 'clean_post_cache' );
260
		}
261
262
		if ( ! empty( $link_ids ) ) {
263
			$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d", $reassign, $user_id ) );
264
			array_walk( $link_ids, 'clean_bookmark_cache' );
265
		}
266
	}
267
268
	restore_current_blog();