- Timestamp:
- 12/24/2010 05:41:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r17129 r17130 79 79 80 80 foreach ( (array) $themes['all'] as $key => $theme ) { 81 $theme_key = esc_html( $theme['Stylesheet'] );81 $theme_key = $theme['Stylesheet']; 82 82 83 83 if ( isset( $allowed_themes [ $theme_key ] ) ) { … … 277 277 ); 278 278 279 $theme_key = esc_html( $theme['Stylesheet'] );279 $theme_key = $theme['Stylesheet']; 280 280 281 281 if ( empty( $theme['enabled'] ) ) … … 286 286 if ( current_user_can('edit_themes') ) 287 287 $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . $theme['Name'] ) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>'; 288 289 if ( empty( $theme['enabled'] ) && current_user_can( 'delete_themes' ) && ! $this->is_site_themes )288 289 if ( empty( $theme['enabled'] ) && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $theme_key != get_option( 'stylesheet' ) && $theme_key != get_option( 'template' ) ) 290 290 $actions['delete'] = '<a href="' . esc_url( wp_nonce_url( 'themes.php?action=delete-selected&checked[]=' . $theme_key . '&theme_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-themes' ) ) . '" title="' . esc_attr__( 'Delete this theme' ) . '" class="delete">' . __( 'Delete' ) . '</a>'; 291 291
Note: See TracChangeset
for help on using the changeset viewer.