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.
Built from https://develop.svn.wordpress.org/trunk@61243


git-svn-id: http://core.svn.wordpress.org/trunk@60555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2025-11-13 21:57:31 +00:00
parent 60109b4de5
commit 882dbf7b39
2 changed files with 2 additions and 8 deletions

View File

@@ -960,13 +960,7 @@ class wpdb {
return;
}
$modes_str = $modes_array[0];
if ( empty( $modes_str ) ) {
return;
}
$modes = explode( ',', $modes_str );
$modes = explode( ',', $modes_array[0] );
}
$modes = array_change_key_case( $modes, CASE_UPPER );

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-alpha-61225';
$wp_version = '7.0-alpha-61243';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.