Skip to content

Commit

Permalink
Fixed: error delete theme
Browse files Browse the repository at this point in the history
  • Loading branch information
thanghv committed Sep 1, 2020
1 parent 7e84dae commit 2d08bd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions class/class-mainwp-child-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ public function theme_action() {

$themes = explode( '||', $theme );

$themes = array_filter( $themes );

if ( count( $themes ) == 1 ) {
$themeToDelete = current( $themes );
if ( $themeToDelete == $theme_name ) {
Expand Down

0 comments on commit 2d08bd7

Please sign in to comment.