Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#24905 closed defect (bug) (fixed)

Twenty Thirteen: Check multiple post formats by passing them as an array

Reported by: obenland Owned by: nacin
Priority: normal Milestone: 3.6
Component: Bundled Theme Version: 3.6
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Since r24817 we can check for more than one post format at once. Let's update Twenty Thirteen with that.

Attachments (1)

24905.diff​ (874 bytes ) - added by obenland 13 years ago.

Download all attachments as: .zip

Change History (8)

#1 @markjaquith
13 years ago

r24817 would have to get applied to branches/3.6.

#2 follow-up: @lancewillett
13 years ago

+1 to the change, but I think it's OK to put this in a later version of the theme.

#3 in reply to: ↑ 2 ; follow-up: @nacin
13 years ago

Replying to lancewillett:

+1 to the change, but I think it's OK to put this in a later version of the theme.

Going into a later version means it loses compatibility with 3.6. So this is either a commit-it-now or a wontfix. I'm fine with either.

I think this would be cleaner if it wasn't a ternary. Don't think the call(s) to has_post_format() makes any difference.

#4 in reply to: ↑ 3 @obenland
13 years ago

Replying to nacin:

Going into a later version means it loses compatibility with 3.6. So this is either a commit-it-now or a wontfix. I'm fine with either.

I'd really like to see it go in if we still have the option. It would also help us with making Twenty Fourteen 3.6 compatible.

#5 @nacin
13 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In 24934:

Twenty Thirteen: Call has_post_format() with the new array style. props obenland, fixes #24905.

#6 @nacin
13 years ago

In 24935:

Twenty Thirteen: Call has_post_format() with the new array style. props obenland, fixes #24905. Merges [24934] to 3.6.

#7 @SergeyBiryukov
13 years ago

  • Version trunk → 3.6
Note: See TracTickets for help on using tickets.