Skip to content
Snippets Groups Projects
Commit a15a8b24 authored by Erick Hitter's avatar Erick Hitter
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment