Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1264-1270 (lines=7) @@
1261
1262
			$pid = edit_post( $post_data );
1263
			if ( $pid ) {
1264
				if ( is_wp_error( $pid ) ) {
1265
					$x = new WP_Ajax_Response( array(
1266
						'what' => 'meta',
1267
						'data' => $pid
1268
					) );
1269
					$x->send();
1270
				}
1271
1272
				if ( !$mid = add_meta( $pid ) )
1273
					wp_die( __( 'Please provide a custom field value.' ) );
@@ 1344-1350 (lines=7) @@
1341
		wp_die( -1 );
1342
	if ( ! $user_id = edit_user() ) {
1343
		wp_die( 0 );
1344
	} elseif ( is_wp_error( $user_id ) ) {
1345
		$x = new WP_Ajax_Response( array(
1346
			'what' => 'user',
1347
			'id' => $user_id
1348
		) );
1349
		$x->send();
1350
	}
1351
	$user_object = get_userdata( $user_id );
1352
1353
	$wp_list_table = _get_list_table('WP_Users_List_Table');