Coding Standards: Remove a one-time $sql variable in network_domain_check().

This allows the `$wpdb::prepare()` call to be picked up correctly by PHPCS.

Follow-up to [28712].

Props aristath, poena, afercia, SergeyBiryukov.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60096


git-svn-id: http://core.svn.wordpress.org/trunk@59432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2025-03-26 10:30:31 +00:00
parent fb8750996e
commit 3116510f51
2 changed files with 3 additions and 3 deletions

View File

@@ -19,10 +19,10 @@
function network_domain_check() {
global $wpdb;
$sql = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) );
if ( $wpdb->get_var( $sql ) ) {
if ( $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) ) ) ) {
return $wpdb->get_var( "SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" );
}
return false;
}

View File

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