Make WordPress Core

Ticket #33313: 33313.3.diff

File 33313.3.diff, 1.7 KB (added by helen, 10 years ago)
  • src/wp-admin/css/list-tables.css

     
    17641764                font-size: 14px;
    17651765        }
    17661766
    1767         .wp-list-table th:not(.column-primary),
    1768         .wp-list-table th:not(.column-primary),
    1769         .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
     1767        .wp-list-table th.column-primary ~ th,
     1768        .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) {
    17701769                display: none;
    17711770        }
    17721771
     
    17801779                width: 35px;
    17811780        }
    17821781
    1783         .wp-list-table .toggle-row {
     1782        .wp-list-table .column-primary .toggle-row {
    17841783                display: block;
    17851784        }
    17861785
     
    17951794                padding-right: 50px; /* space for toggle button */
    17961795        }
    17971796
    1798         .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
     1797        .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) {
    17991798                padding: 3px 8px 3px 35%;
    18001799        }
    18011800
  • src/wp-admin/includes/class-wp-list-table.php

     
    12581258         * @return string The row actions output. In this case, an empty string.
    12591259         */
    12601260        protected function handle_row_actions( $item, $column_name, $primary ) {
    1261                 return '';
     1261                return $column_name == $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : '';
    12621262        }
    12631263
    12641264        /**