Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#16224 closed defect (bug) (fixed)

format-standard class unnecessary for pages

Reported by: iandstewart Owned by:
Priority: normal Milestone: 3.1
Component: General Version: 3.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

If post formats are meant only for posts it seems unnecessary to include format-standard in the post classes for pages.

Attachments (2)

post-format-classes.diff​ (515 bytes ) - added by iandstewart 16 years ago.
post-format-classes-2.diff​ (758 bytes ) - added by iandstewart 16 years ago.

Download all attachments as: .zip

Change History (6)

#1 follow-up: @nacin
16 years ago

  • Milestone Awaiting Review → 3.1

We should probably instead use if ( post_type_supports( $post->post_type, 'post-formats' ) ).

#2 in reply to: ↑ 1 @westi
16 years ago

Replying to nacin:

We should probably instead use if ( post_type_supports( $post->post_type, 'post-formats' ) ).

Agreed

#3 @iandstewart
16 years ago

Updated patch to exclude any post type that doesn't use post formats.

#4 @nacin
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [17292]) Only add the post format post classes when the post type supports post formats. posts posts posts posts. props iandstewart, fixes #16224.

Note: See TracTickets for help on using tickets.