WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#19868 closed defect (bug) (wontfix)

Custom post type called 'preview' admin issues.

Reported by: pnomolos Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: General Keywords:
Focuses: Cc:

Description

The admin css includes a general rule for the .preview class of { float: right }. If you have a custom post type of 'preview' then this css rule causes all sorts of issues when viewing the list of CPT Previews in the backend. Adding a tr.preview { float: none } rule should fix this.

Change History (4)

comment:1 @scribu4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

'preview' can be considered a reserved word (it's used as a query var for previewing posts). You'll just have to add a prefix to your post type name, such as 'my_preview'.

comment:2 follow-up: @pnomolos4 years ago

As a follow up to this, is there a listing anywhere of these "reserved" words (and has any thought been put in to not allowing them to be used for CPT names?)

comment:3 in reply to: ↑ 2 @DrewAPicture4 years ago

  • Keywords ui-feedback removed

Replying to pnomolos:

As a follow up to this, is there a listing anywhere of these "reserved" words (and has any thought been put in to not allowing them to be used for CPT names?)

Reserved Terms list in the Codex.

Note: See TracTickets for help on using tickets.