diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php
index f822e57cf2..91e92995ec 100644
|
a
|
b
|
function delete_theme( $stylesheet, $redirect = '' ) { |
| 66 | 66 | return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors ); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | | // Get the base plugin folder. |
| | 69 | // Get the base theme folder. |
| 70 | 70 | $themes_dir = $wp_filesystem->wp_themes_dir(); |
| 71 | 71 | if ( empty( $themes_dir ) ) { |
| 72 | 72 | return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress theme directory.' ) ); |