Ticket #24478: 24478.diff
File 24478.diff, 1.9 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/class-wp-ms-themes-list-table.php
284 284 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) 285 285 $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>'; 286 286 287 $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $ stylesheet, $theme, $context );288 $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $ stylesheet, $theme, $context );287 $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context ); 288 $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context ); 289 289 290 290 $class = ! $allowed ? 'inactive' : 'active'; 291 291 $checkbox_id = "checkbox_" . md5( $theme->get('Name') ); -
wp-admin/includes/class-wp-themes-list-table.php
149 149 . "' );" . '">' . __( 'Delete' ) . '</a>'; 150 150 151 151 $actions = apply_filters( 'theme_action_links', $actions, $theme ); 152 $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme ); 152 153 $delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : ''; 153 154 unset( $actions['delete'] ); 154 155