WordPress.org

Make WordPress Core

Ticket #10674: _wp_get_comment_list.patch

File _wp_get_comment_list.patch, 650 bytes (added by scribu, 12 years ago)
  • wp-admin/includes/template.php

     
    20312031        if ( $post ) {
    20322032                $total = '';
    20332033                $post = " AND c.comment_post_ID = '$post'";
    2034                 $orderby = "ORDER BY c.comment_date_gmt ASC LIMIT $start, $num";
    20352034        } else {
    20362035                $post = '';
    2037                 $orderby = "ORDER BY c.comment_date_gmt DESC LIMIT $start, $num";
    20382036        }
    20392037
     2038        $orderby = "ORDER BY c.comment_date_gmt DESC LIMIT $start, $num";
     2039
    20402040        if ( 'comment' == $type )
    20412041                $typesql = "AND c.comment_type = ''";
    20422042        elseif ( 'pings' == $type )