Remove 'Preview' buttons from CPTs when not public
|Reported by:||picklewagon||Owned by:|
When setting a CPTs 'public' argument to false, the 'Preview' link in the list for that CPT does not show. But when editing an instance of the CPT, the 'Preview Changes' button shows. When creating a new instance of the CPT, the 'Preview' button shows as well. In order to make these consistent, these buttons should be removed.