From 1dc3f878703ff788a5dc1b06efda6c665554dcb3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 29 Mar 2024 11:42:13 +0000 Subject: [PATCH] Networks and Sites: Remove unused `$wpdb` global in `update_blog_details()`. Follow-up to [43548]. Props viralsampat. See #60021. Built from https://develop.svn.wordpress.org/trunk@57898 git-svn-id: http://core.svn.wordpress.org/trunk@57399 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-blogs.php | 4 ---- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 0468f12646..2cf6d2390a 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -293,15 +293,11 @@ function refresh_blog_details( $blog_id = 0 ) { * * @since MU (3.0.0) * - * @global wpdb $wpdb WordPress database abstraction object. - * * @param int $blog_id Blog ID. * @param array $details Array of details keyed by blogs table field names. * @return bool True if update succeeds, false otherwise. */ function update_blog_details( $blog_id, $details = array() ) { - global $wpdb; - if ( empty( $details ) ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 49cbfaffec..699721a013 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57897'; +$wp_version = '6.6-alpha-57898'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.