Skip to content

Commit 3a4d190

Browse files
swissspidyCopilot
andauthored
Update src/WP_CLI/CommandWithUpgrade.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 551fe3e commit 3a4d190

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ protected function install_from_php_file( $url, $assoc_args ) {
398398
}
399399

400400
// Verify the constructed path is within the plugin directory.
401-
$expected_path = trailingslashit( $real_plugin_dir ) . $dest_filename;
402401
if ( realpath( dirname( $dest_path ) ) !== $real_plugin_dir ) {
403402
return new WP_Error( 'invalid_path', 'The destination path is outside the plugin directory.' );
404403
}

0 commit comments

Comments
 (0)