Ticket #33313: 33313.3.diff
File 33313.3.diff, 1.7 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/list-tables.css
1764 1764 font-size: 14px; 1765 1765 } 1766 1766 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) { 1770 1769 display: none; 1771 1770 } 1772 1771 … … 1780 1779 width: 35px; 1781 1780 } 1782 1781 1783 .wp-list-table . toggle-row {1782 .wp-list-table .column-primary .toggle-row { 1784 1783 display: block; 1785 1784 } 1786 1785 … … 1795 1794 padding-right: 50px; /* space for toggle button */ 1796 1795 } 1797 1796 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) { 1799 1798 padding: 3px 8px 3px 35%; 1800 1799 } 1801 1800 -
src/wp-admin/includes/class-wp-list-table.php
1258 1258 * @return string The row actions output. In this case, an empty string. 1259 1259 */ 1260 1260 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>' : ''; 1262 1262 } 1263 1263 1264 1264 /**