← All changes
|
app/modules/import-export-customization/runners/revert/site-settings.php
+0
-4
4.3.1
→
3.31.4
View file →
| @@ -71,12 +71,8 @@ | ||
| 71 | 71 | return $theme_slug !== $current_theme->get_stylesheet() && wp_get_theme( $theme_slug )->exists(); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | protected function delete_theme( $theme_slug ): bool { |
| 75 | - if ( ! function_exists( 'delete_theme' ) ) { | |
| 76 | - require_once ABSPATH . 'wp-admin/includes/theme.php'; | |
| 77 | - } | |
| 78 | - | |
| 79 | 75 | return delete_theme( $theme_slug ); |
| 80 | 76 | } |
| 81 | 77 | |
| 82 | 78 | protected function activate_previous_theme( $previous_active_theme ) { |