Make WordPress Core

Changeset 61243


Ignore:
Timestamp:
11/13/2025 09:55:08 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant check in wpdb::set_sql_mode().

This commit removes an unnecessary empty( $modes_str ) check, as the previous code block already checks the same value and returns early.

Follow-up to [30587], [56475].

Props justlevine.
See #64238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wpdb.php

    r61191 r61243  
    961961            }
    962962
    963             $modes_str = $modes_array[0];
    964 
    965             if ( empty( $modes_str ) ) {
    966                 return;
    967             }
    968 
    969             $modes = explode( ',', $modes_str );
     963            $modes = explode( ',', $modes_array[0] );
    970964        }
    971965
Note: See TracChangeset for help on using the changeset viewer.