Non-publicly queryable posts should not allow preview
|Reported by:||tamlyn||Owned by:|
Custom post types which have publicly_queryable=false but show_ui=true should not show a preview button in the admin. Similarly, the slug editor should also be hidden and the 'View post' link should not be displayed in the published message.
Looking at the core code, it seems to be a simple matter of updating it to look at the publicly_queryable property instead of the public meta property.
If approved, I can have a go at creating a patch.
In the meantime, attached is a bit of PHP which modifies the output buffer to achieve the same result.
Change History (6)
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed