Code Duplication    Length = 2-2 lines in 2 locations

modules/videopress/videopress.php 2 locations

@@ 650-651 (lines=2) @@
647
			return wp_send_json_error( 'permission denied' );
648
649
		$post_id = 0;
650
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
651
			wp_send_json_error();
652
653
		if ( ! isset( $_POST['vp_nonces']['update'] ) )
654
			wp_send_json_error();
@@ 702-703 (lines=2) @@
699
			return wp_send_json_error( 'permission denied' );
700
701
		$post_id = 0;
702
		if ( ! isset( $_POST['id'] ) || ! $post_id = absint( $_POST['id'] ) )
703
			wp_send_json_error();
704
705
		if ( ! isset( $_POST['vp_nonces']['delete'] ) )
706
			wp_send_json_error();