Skip to content

Commit f7efd49

Browse files
committed
Fix paths
1 parent 4b4dfc3 commit f7efd49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Plugin_Language_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function uninstall( $args, $assoc_args ) {
501501

502502
++$count_files_to_remove;
503503

504-
if ( $wp_filesystem->delete( WP_LANG_DIR . $dir . '/' . $file ) ) {
504+
if ( $wp_filesystem->delete( $dir . '/' . $file ) ) {
505505
++$count_files_removed;
506506
} else {
507507
\WP_CLI::error( "Couldn't uninstall language: $language_code from plugin $plugin." );

src/Theme_Language_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public function uninstall( $args, $assoc_args ) {
512512

513513
++$count_files_to_remove;
514514

515-
if ( $wp_filesystem->delete( WP_LANG_DIR . $dir . '/' . $file ) ) {
515+
if ( $wp_filesystem->delete( $dir . '/' . $file ) ) {
516516
++$count_files_removed;
517517
} else {
518518
\WP_CLI::error( "Couldn't uninstall language: $language_code from theme $theme." );

0 commit comments

Comments
 (0)