Code Duplication    Length = 7-7 lines in 2 locations

src/wp-admin/includes/ajax-actions.php 2 locations

@@ 1306-1312 (lines=7) @@
1303
1304
			$pid = edit_post( $post_data );
1305
			if ( $pid ) {
1306
				if ( is_wp_error( $pid ) ) {
1307
					$x = new WP_Ajax_Response( array(
1308
						'what' => 'meta',
1309
						'data' => $pid
1310
					) );
1311
					$x->send();
1312
				}
1313
1314
				if ( !$mid = add_meta( $pid ) )
1315
					wp_die( __( 'Please provide a custom field value.' ) );
@@ 1384-1390 (lines=7) @@
1381
		wp_die( -1 );
1382
	if ( ! $user_id = edit_user() ) {
1383
		wp_die( 0 );
1384
	} elseif ( is_wp_error( $user_id ) ) {
1385
		$x = new WP_Ajax_Response( array(
1386
			'what' => 'user',
1387
			'id' => $user_id
1388
		) );
1389
		$x->send();
1390
	}
1391
	$user_object = get_userdata( $user_id );
1392
1393
	$wp_list_table = _get_list_table('WP_Users_List_Table');