Skip to content

Commit d2613da

Browse files
Coding Standards: Remove extra empty() in request_filesystem_credentials().
This commit removes an unnecessary `empty( $connection_type )` check, as the left side of the same conditional already accounts for a possibly empty value. Follow-up to [37467]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60309 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3a09159 commit d2613da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2622,7 +2622,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
26222622
<?php
26232623
if ( isset( $types['ssh'] ) ) {
26242624
$hidden_class = '';
2625-
if ( 'ssh' !== $connection_type || empty( $connection_type ) ) {
2625+
if ( 'ssh' !== $connection_type ) {
26262626
$hidden_class = ' class="hidden"';
26272627
}
26282628
?>

0 commit comments

Comments
 (0)