Skip to content

Commit 80b8c1c

Browse files
committed
Fix missing variable
1 parent b4656a3 commit 80b8c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,10 +1424,10 @@ private function cleanup_extra_files( $version_from, $version_to, $locale, $inse
14241424
if ( fileinode( $old_realpath ) === fileinode( $new_realpath ) ) {
14251425
// Check deeper because even realpath or glob might not return the actual case.
14261426
if ( ! in_array( $expected_basename, scandir( dirname( $new_realpath ) ), true ) ) {
1427-
WP_CLI::debug( "Renaming file '{$old_filepath_to_check}' => '{$expected}'", 'core' );
1427+
WP_CLI::debug( "Renaming file '{$old_filepath_to_check}' => '{$new_filepath}'", 'core' );
14281428

14291429
rename( ABSPATH . $old_filepath_to_check, ABSPATH . $old_filepath_to_check . '.tmp' );
1430-
rename( ABSPATH . $old_filepath_to_check . '.tmp', ABSPATH . $expected );
1430+
rename( ABSPATH . $old_filepath_to_check . '.tmp', ABSPATH . $new_filepath );
14311431
}
14321432
} else {
14331433
// On Unix with both files: Delete the incorrectly cased file.

0 commit comments

Comments
 (0)