Make WordPress Core

Opened 21 years ago

Closed 20 years ago

#1620 closed defect (bug) (fixed)

Scheduled entries on Dashboard not ordering correctly.

Reported by: schulte Owned by:
Priority: normal Milestone:
Component: Administration Version: 2.1
Severity: trivial Keywords: bg|has-patch
Cc: Focuses:

Description

Let unfixed, the Scheduled Entries text on the Dashboard yields a list of entries in the order they were created instead of the correct post date/time order.

original wp-admin/index.php code:

if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today'") ) :

corrected query:

if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today' ORDER BY post_date_gmt") ) :

Attachments (1)

index.php.diff​ (363 bytes ) - added by schulte 20 years ago.

Download all attachments as: .zip

Change History (4)

#1 @schulte
21 years ago

  • Keywords bg|2nd-opinion added

@schulte
20 years ago

#2 @schulte
20 years ago

  • Keywords bg|has-patch added; bg|2nd-opinion removed
  • Severity normal → trivial
  • Version 1.5.2 → 2.1

#3 @schulte
20 years ago

  • Resolution → fixed
  • Status new → closed
Note: See TracTickets for help on using tickets.