Code Duplication    Length = 2-2 lines in 2 locations

modules/videopress/videopress.php 2 locations

@@ 372-373 (lines=2) @@
369
			return wp_send_json_error( 'permission denied' );
370
371
		$post_id = 0;
372
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
373
			wp_send_json_error();
374
375
		if ( ! isset( $_POST['vp_nonces']['update'] ) )
376
			wp_send_json_error();
@@ 424-425 (lines=2) @@
421
			return wp_send_json_error( 'permission denied' );
422
423
		$post_id = 0;
424
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
425
			wp_send_json_error();
426
427
		if ( ! isset( $_POST['vp_nonces']['delete'] ) )
428
			wp_send_json_error();