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:
Jb Audras
2024-01-14 10:04:38 +00:00
parent 6089ffbed1
commit 753b41bd4a

View File

@@ -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.' ) );