WordPress.org

Making WordPress.org

Opened 21 months ago

Closed 20 months ago

Last modified 20 months ago

#1659 closed defect (fixed)

Sort by "Time" broken in Sessions Custom Post Type

Reported by: sbrinley Owned by: iandunn
Milestone: Priority: normal
Component: WordCamp Site & Plugins Keywords: good-first-bug has-patch needs-testing
Cc:

Description

This is for the WordCamp version of WordPress. In the “Sessions” Custom Post Type, when I try to sort by time, everything disappears and it says "No sessions found”.

Attachments (1)

1659.patch (1011 bytes) - added by juanfra 20 months ago.
There was a code trying to apply a patch to core that was resolved versions ago. By deleting that should work just fine. Also, the session time is a default custom field now, so it'll be always be present.

Download all attachments as: .zip

Change History (5)

#1 @iandunn
21 months ago

  • Keywords needs-patch good-first-bug added
  • Owner set to iandunn
  • Status changed from new to accepted

@juanfra
20 months ago

There was a code trying to apply a patch to core that was resolved versions ago. By deleting that should work just fine. Also, the session time is a default custom field now, so it'll be always be present.

#2 @juanfra
20 months ago

Thanks for the heads up @sbrinley, nice catch!

I've submitted a patch, let's go how it goes.

Version 0, edited 20 months ago by juanfra (next)

#3 @juanfra
20 months ago

  • Keywords has-patch needs-testing added; needs-patch removed

#4 @iandunn
20 months ago

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

In 3042:

WordCamp Post Types: Remove unnecessary hack to fix sorting sessions by time.

The problem with meta queries was fixed in [wp27689], and after that was deployed, this hack caused sorting by time to break.

Props juanfra
Fixes #1659

Note: See TracTickets for help on using tickets.