Ticket #41164: 41164.diff
File 41164.diff, 1.7 KB (added by , 6 months ago) |
---|
-
src/wp-admin/css/list-tables.css
1595 1595 width: 80px; 1596 1596 } 1597 1597 1598 .wp-list-table td.column-theme-screenshot img { 1599 width: 100%; 1600 height: auto; 1601 } 1602 1598 1603 /* =Media Queries 1599 1604 -------------------------------------------------------------- */ 1600 1605 -
src/wp-admin/includes/class-wp-ms-themes-list-table.php
330 330 'cb' => '<input type="checkbox" />', 331 331 'name' => __( 'Theme' ), 332 332 'description' => __( 'Description' ), 333 'screenshot' => __( 'Screenshot' ), 333 334 ); 334 335 335 336 if ( $this->show_autoupdates ) { … … 844 845 } 845 846 846 847 /** 848 * Handles the screenshot column output. 849 * 850 * @since x.x.x 851 * 852 * @param WP_Theme $theme The current WP_Theme object. 853 */ 854 public function column_screenshot( $theme ) { 855 printf( 856 '<img src="%s" alt="">', 857 esc_url( $theme->get_screenshot() ), 858 esc_attr( sprintf( 859 /* translators: %s: Name of theme. */ 860 __( 'Screenshot of %s theme' ), 861 $theme->display( 'Name' ) ) 862 ) 863 ); 864 } 865 866 /** 847 867 * Handles default column output. 848 868 * 849 869 * @since 4.3.0 … … 925 945 echo '</td>'; 926 946 break; 927 947 948 case 'screenshot': 949 echo "<td class='column-theme-screenshot{$extra_classes}'>"; 950 951 $this->column_screenshot( $item ); 952 953 echo '</td>'; 954 break; 955 928 956 case 'auto-updates': 929 957 echo "<td class='column-auto-updates{$extra_classes}'>"; 930 958