Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#3951 closed defect (bug) (duplicate)

fix for postbypost archives

Reported by: flinkflonk Owned by:
Priority: normal Milestone:
Component: Template Version: 2.2
Severity: normal Keywords:
Cc: Focuses:

Description

I just tried out some themes that show the last 10 or so posts using get_archives. After converting this to a (non-deprecated) wp_get_archives I discovered it wasn't that which broke the database query, it was the code constructing the query, adding a term to order by without actually adding the words "order by" :)

Patch attached.

Attachments (1)

fix-postbypost-query.diff (718 bytes ) - added by flinkflonk 20 years ago.

Download all attachments as: .zip

Change History (6)

#1 @flinkflonk
20 years ago

  • Keywords has-patch added
  • Milestone 2.32.2

#2 @flinkflonk
20 years ago

but ok, I see this has been opened by one of the regulars (foolswisdom) as #3961 and a commit-candidate. Just remember to close this when you apply #3961 :)

#3 @westi
20 years ago

  • Component GeneralTemplate
  • Keywords commit added
  • Priority lowestnormal

I have closed the later ticket as a dupe of this one.

#4 @foolswisdom
20 years ago

  • Keywords has-patch commit removed
  • Milestone 2.2
  • Resolutionduplicate
  • Status newclosed

Ryan ended up committing the other one.

#5 @ryan
20 years ago

Oops.

Note: See TracTickets for help on using tickets.