Make WordPress Core

Ticket #32996: 32996.patch

File 32996.patch, 1.1 KB (added by ocean90, 10 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

     
    887887                $columns = $this->get_columns();
    888888                $default = $this->get_default_primary_column_name();
    889889
     890                // If the primary column doesn't exist fall back to the
     891                // first non-checkbox column.
     892                if ( ! isset( $columns[ $default ] ) ) {
     893                        $default = WP_List_Table::get_default_primary_column_name();
     894                }
     895
    890896                /**
    891897                 * Filter the name of the primary column for the current list table.
    892898                 *
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    10691069         * @return string Name of the default primary column, in this case, 'title'.
    10701070         */
    10711071        protected function get_default_primary_column_name() {
    1072                 return( 'title' );
     1072                return 'title';
    10731073        }
    10741074
    10751075        /**