Making WordPress.org

Changeset 13577


Ignore:
Timestamp:
04/22/2024 01:28:32 AM (11 months ago)
Author:
dd32
Message:

Plugin Directory: Reviews: Fetch the latest reviews by date, not by review ID.

The review_id is an incremental field that may not reflect the same date order as the reviews are in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-tools.php

    r13510 r13577  
    7171                    LEFT JOIN " . $wpdb->base_prefix . WPORG_SUPPORT_FORUMS_BLOGID . "_posts p ON r.post_id = p.ID
    7272                WHERE r.object_type = 'plugin' AND r.object_slug = %s AND p.post_status = 'publish'
    73                 ORDER BY r.review_id DESC
     73                ORDER BY r.date DESC
    7474                LIMIT %d",
    7575                $post->post_name,
Note: See TracChangeset for help on using the changeset viewer.