From a15a8b24eefc4852cfefa25d135e7a02d5f36e99 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Sat, 29 Jun 2013 17:28:10 -0400
Subject: [PATCH] Remove unnecessary use of array_unique. Post types are stored
 internally using the type slug as an index, so there can't be duplicates to
 begin with.

---
 wp-revisions-control.php | 2 --
 1 file changed, 2 deletions(-)

diff --git a/wp-revisions-control.php b/wp-revisions-control.php
index d45abde..4f51a42 100644
--- a/wp-revisions-control.php
+++ b/wp-revisions-control.php
@@ -217,8 +217,6 @@ class WP_Revisions_Control {
 					self::$post_types[ $type ] = $name;
 				}
 			}
-
-			self::$post_types = array_unique( self::$post_types );
 		}
 
 		return self::$post_types;
-- 
GitLab