Commit a15a8b24 authored by Erick Hitter's avatar Erick Hitter

Remove unnecessary use of array_unique. Post types are stored internally using...

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.
parent 5edfa78c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment