Make WordPress Core


Ignore:
Timestamp:
06/14/2025 05:02:41 AM (11 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.