Changeset 30697 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 12/02/2014 02:20:14 AM (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
r30680 r30697 425 425 WP_Theme::sort_by_name( $themes ); 426 426 foreach ( $themes as $theme ) { 427 $slug = $theme->get_stylesheet(); 428 $encoded_slug = urlencode( $slug ); 429 427 430 $parent = false; 428 431 if ( $theme->parent() ) { 429 432 $parent = $theme->parent()->display( 'Name' ); 430 } 431 432 $slug = $theme->get_stylesheet(); 433 $encoded_slug = urlencode( $slug ); 433 $parents[ $slug ] = $theme->parent()->get_stylesheet(); 434 } 434 435 435 436 $prepared_themes[ $slug ] = array( … … 461 462 } 462 463 464 // Remove 'delete' action if theme has an active child 465 if ( isset( $parents ) && array_key_exists( $current_theme, $parents ) ) { 466 unset( $prepared_themes[ $parents[ $current_theme ] ]['actions']['delete'] ); 467 } 468 463 469 /** 464 470 * Filter the themes prepared for JavaScript, for themes.php.
Note: See TracChangeset
for help on using the changeset viewer.