Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#19868 closed defect (bug) (wontfix)

Custom post type called 'preview' admin issues.

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

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)

#1 @scribu
15 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

'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'.

#2 follow-up: @pnomolos
15 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?)

#3 in reply to: ↑ 2 @DrewAPicture
15 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.