Skip to content

Commit cb58c28

Browse files
committed
remove double check
1 parent 7138fb8 commit cb58c28

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,6 @@ protected function install_from_php_file( $url, $assoc_args ) {
405405
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
406406
return new WP_Error( 'invalid_path', 'Unable to create plugin directory.' );
407407
}
408-
409-
// Verify that the plugin directory was successfully created.
410-
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
411-
return new WP_Error( 'invalid_path', 'Unable to create plugin directory.' );
412-
}
413408
}
414409

415410
// Validate the destination stays within the plugin directory (prevent directory traversal).

0 commit comments

Comments
 (0)