Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#19868 closed defect (bug) (wontfix)

Custom post type called 'preview' admin issues.

Reported by: pnomolos's profile 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)

#1 @scribu
13 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'.

#2 follow-up: @pnomolos
13 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
13 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.