Skip to content

Commit 0407ebc

Browse files
committed
Fix deleted check in core language command
1 parent 46c06d7 commit 0407ebc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Core_Language_Command.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ public function uninstall( $args ) {
370370
}
371371

372372
/** @var WP_Filesystem_Base $wp_filesystem */
373-
$deleted = $wp_filesystem->delete( WP_LANG_DIR . $dir . '/' . $file );
373+
if ( $wp_filesystem->delete( WP_LANG_DIR . $dir . '/' . $file ) ) {
374+
$deleted = true;
375+
}
374376
}
375377

376378
if ( $deleted ) {

0 commit comments

Comments
 (0)