Code Duplication    Length = 2-2 lines in 2 locations

modules/videopress/videopress.php 2 locations

@@ 706-707 (lines=2) @@
703
			return wp_send_json_error( 'permission denied' );
704
705
		$post_id = 0;
706
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
707
			wp_send_json_error();
708
709
		if ( ! isset( $_POST['vp_nonces']['update'] ) )
710
			wp_send_json_error();
@@ 758-759 (lines=2) @@
755
			return wp_send_json_error( 'permission denied' );
756
757
		$post_id = 0;
758
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
759
			wp_send_json_error();
760
761
		if ( ! isset( $_POST['vp_nonces']['delete'] ) )
762
			wp_send_json_error();