WordPress.org

Make WordPress Core

Ticket #17141: 17141.diff

File 17141.diff, 522 bytes (added by scribu, 2 years ago)

make 'author' column non-sortable

  • wp-admin/includes/class-wp-posts-list-table.php

    diff --git wp-admin/includes/class-wp-posts-list-table.php wp-admin/includes/class-wp-posts-list-table.php
    index f3f10b0..d78a6a4 100644
    class WP_Posts_List_Table extends WP_List_Table { 
    293293        function get_sortable_columns() { 
    294294                return array( 
    295295                        'title'    => 'title', 
    296                         'author'   => 'author', 
    297296                        'parent'   => 'parent', 
    298297                        'comments' => 'comment_count', 
    299298                        'date'     => array( 'date', true )