Ticket #28165: 28165.diff
File 28165.diff, 1.4 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/themes.css
1729 1729 .available-theme .action-links .delete-theme a { 1730 1730 padding: 0; 1731 1731 } 1732 1733 .broken-themes table { 1734 width: 100%; 1735 } 1732 1736 } -
src/wp-admin/themes.php
250 250 <tr> 251 251 <th><?php _ex('Name', 'theme name'); ?></th> 252 252 <th><?php _e('Description'); ?></th> 253 <th></th> 253 254 </tr> 254 255 <?php 255 256 foreach ( $broken_themes as $broken_theme ) { 257 $stylesheet = $broken_theme->get_stylesheet(); 258 $delete_url = add_query_arg( array( 259 'action' => 'delete', 260 'stylesheet' => urlencode( $stylesheet ), 261 ), admin_url( 'themes.php' ) ); 262 $delete_url = wp_nonce_url( $delete_url, 'delete-theme_' . $stylesheet ); 263 256 264 echo " 257 265 <tr> 258 <td>" . ( $broken_theme->get( 'Name' ) ? $broken_theme->get( 'Name' ) : $ broken_theme->get_stylesheet()) . "</td>266 <td>" . ( $broken_theme->get( 'Name' ) ? $broken_theme->get( 'Name' ) : $stylesheet ) . "</td> 259 267 <td>" . $broken_theme->errors()->get_error_message() . "</td> 268 <td><a href='" . esc_url( $delete_url ) . "' class='button button-secondary delete-theme'>" . __( 'Delete' ) . "</a></td> 260 269 </tr>"; 261 270 } 262 271 ?>