Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4442 closed defect (bug) (fixed)

in_category() is broken

Reported by: markjaquith's profile markjaquith Owned by: technosailor's profile technosailor
Milestone: 2.3 Priority: high
Severity: major Version: 2.3
Component: Template Keywords: has-patch
Focuses: Cc:

Description

the in_category() function doesn't work correctly in trunk. Likely needs to be re-pointed to use the new term API.

Attachments (2)

4442.diff (708 bytes) - added by technosailor 17 years ago.
Fixes in_category to use terms object cache
4442.2.diff (726 bytes) - added by technosailor 17 years ago.
Refresh on patch to r5697

Download all attachments as: .zip

Change History (13)

@technosailor
17 years ago

Fixes in_category to use terms object cache

#1 @technosailor
17 years ago

  • Owner changed from ryan to technosailor

Patch attached since it was my conversation with markjaquith that brought this bug up. Appreciate a second set of eyes.

#3 follow-up: @rob1n
17 years ago

Ah, but that doesn't use term cache API

#4 in reply to: ↑ 3 @technosailor
17 years ago

Replying to rob1n:

Ah, but that doesn't use term cache API

I saw Matt's changeset last night after this ticket and patch was submitted.

Which way is better? Mine or his? Mine uses the cache while his does not.

#5 @technosailor
17 years ago

Rather, mine uses API and his does not. I presume this is what you were saying but I am operating on 1.5h sleep.

#6 @rob1n
17 years ago

I'm +1 for API. Does your patch need refreshing now that the code's changed?

#7 @technosailor
17 years ago

I'm using it right now with no problems. Like I mentioned, 'preciate an extra set of eyes to make sure I'm not crazy and the code is solid, but pulling an array value in the way Matt did makes no real sense in the grand scheme of things. The API is so new, though, that I want to make sure I did it right.

#8 @technosailor
17 years ago

I'll refresh the patch for the latest changeset and resubmit moemntarily.

@technosailor
17 years ago

Refresh on patch to r5697

#9 @technosailor
17 years ago

Refreshed. Have a ball. :)

#10 @Nazgul
17 years ago

  • Keywords has-patch added

#11 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5868]) Update in_category() to use object term cache API. Props technosailor. fixes #4442

Note: See TracTickets for help on using tickets.