Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#18228 closed defect (bug) (fixed)

Only add the post format body classes when the post type supports post formats

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

Description

Same as #16224 and r17292 but this time for the body class.

Attachments (1)

18228.patch (900 bytes ) - added by ocean90 15 years ago.

Download all attachments as: .zip

Change History (5)

@ocean90
15 years ago

#1 @kawauso
15 years ago

get_post_format() already performs a post_type_supports() check and returns false as of r17429.

#2 @ocean90
15 years ago

  • Milestone Awaiting Review3.3

That's right, but it returns also false if get_the_terms is empty.

#3 @kawauso
15 years ago

Ah, missed the else clause.

#4 @duck_
15 years ago

  • Owner set to duck_
  • Resolutionfixed
  • Status newclosed

In [18651]:

Only add the post format body classes when the post type supports post formats. props ocean90. fixes #18228.

Note: See TracTickets for help on using tickets.