Code Duplication    Length = 2-2 lines in 2 locations

modules/videopress/videopress.php 2 locations

@@ 537-538 (lines=2) @@
534
			return wp_send_json_error( 'permission denied' );
535
536
		$post_id = 0;
537
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
538
			wp_send_json_error();
539
540
		if ( ! isset( $_POST['vp_nonces']['update'] ) )
541
			wp_send_json_error();
@@ 589-590 (lines=2) @@
586
			return wp_send_json_error( 'permission denied' );
587
588
		$post_id = 0;
589
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
590
			wp_send_json_error();
591
592
		if ( ! isset( $_POST['vp_nonces']['delete'] ) )
593
			wp_send_json_error();