Changeset 30982 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 12/20/2014 10:46:53 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r30944 r30982 431 431 432 432 WP_Theme::sort_by_name( $themes ); 433 434 $parents = array(); 435 433 436 foreach ( $themes as $theme ) { 434 437 $slug = $theme->get_stylesheet(); … … 470 473 471 474 // Remove 'delete' action if theme has an active child 472 if ( isset( $parents ) && array_key_exists( $current_theme, $parents ) ) {475 if ( ! empty( $parents ) && array_key_exists( $current_theme, $parents ) ) { 473 476 unset( $prepared_themes[ $parents[ $current_theme ] ]['actions']['delete'] ); 474 477 }
Note: See TracChangeset
for help on using the changeset viewer.