Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/ms-functions.php 2 locations

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