Make WordPress Core

Changeset 60309


Ignore:
Timestamp:
06/14/2025 05:02:41 AM (15 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r59902 r60309  
    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                }
Note: See TracChangeset for help on using the changeset viewer.