WordPress.org

Make WordPress Core

Ticket #32735: 32735.diff

File 32735.diff, 528 bytes (added by swissspidy, 4 years ago)

Make plugin list table sortable

  • src/wp-admin/includes/class-wp-plugins-list-table.php

    diff --git src/wp-admin/includes/class-wp-plugins-list-table.php src/wp-admin/includes/class-wp-plugins-list-table.php
    index 9b12644..690dfbe 100644
    class WP_Plugins_List_Table extends WP_List_Table { 
    292292         * @return array
    293293         */
    294294        protected function get_sortable_columns() {
    295                 return array();
     295                return array(
     296                        'name'        => 'name',
     297                        'description' => 'description',
     298                );
    296299        }
    297300
    298301        /**