[wp-trac] [WordPress Trac] #25493: Sorting posts in ascending order of date at admin side

WordPress Trac noreply at wordpress.org
Thu Oct 1 02:09:43 UTC 2015


#25493: Sorting posts in ascending order of date at admin side
-------------------------------------+-----------------------------
 Reporter:  vinod dalvi              |       Owner:  wonderboymusic
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.4
Component:  Posts, Post Types        |     Version:  3.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-refresh  |     Focuses:  administration
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34728"]:
 {{{
 #!CommitTicketReference repository="" revision="34728"
 Post List Table: Ensure that `edit.php` with no query string produces the
 proper markup and links in the `date` column header.

 Add 2 methods to `WP_List_Table`, `->get_orderby()` and `->get_order()`.
 Override the methods in `WP_Posts_List_Table`.

 `WP_Posts_List_Table` calls `wp_edit_posts_query()` in `->prepare_items()`
 which is a wrapper for `wp()`. As such, we can obtain `orderby` and
 `order` via `get_query_var()`, instead of the URL.

 Fixes #25493.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25493#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list