Make WordPress Core

Ticket #60246: patch.diff

File patch.diff, 604 bytes (added by wildworks, 18 months ago)
  • src/wp-admin/includes/theme.php

    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 = '' ) { 
    6666                return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors );
    6767        }
    6868
    69         // Get the base plugin folder.
     69        // Get the base theme folder.
    7070        $themes_dir = $wp_filesystem->wp_themes_dir();
    7171        if ( empty( $themes_dir ) ) {
    7272                return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress theme directory.' ) );