mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Fix wrong inline comment in delete_theme().
Props wildworks. Fixes #60246. See #59651. git-svn-id: https://develop.svn.wordpress.org/trunk@57280 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -66,7 +66,7 @@ function delete_theme( $stylesheet, $redirect = '' ) {
|
||||
return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors );
|
||||
}
|
||||
|
||||
// Get the base plugin folder.
|
||||
// Get the base theme folder.
|
||||
$themes_dir = $wp_filesystem->wp_themes_dir();
|
||||
if ( empty( $themes_dir ) ) {
|
||||
return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress theme directory.' ) );
|
||||
|
||||
Reference in New Issue
Block a user