From a23c313b54284feb291060ceaef0624078bf2ed4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 19 Mar 2026 10:34:07 +0100 Subject: [PATCH 1/2] Docs: Add not about retrieving db version on Multisite --- src/Core_Command.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Core_Command.php b/src/Core_Command.php index cf13c7cb..4da46b0f 100644 --- a/src/Core_Command.php +++ b/src/Core_Command.php @@ -977,6 +977,9 @@ private static function get_clean_basedomain() { * [--extra] * : Show extended version information. * + * Note: to retrieve the database revision for an individual subsite in a Multisite installation, + * use `wp option get db_version --url=`. See also `wp core check-update-db`. + * * ## EXAMPLES * * # Display the WordPress version From 99f59134e430aed82b9dece02173af0f8e499cb1 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 19 Mar 2026 10:46:10 +0100 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/Core_Command.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Core_Command.php b/src/Core_Command.php index 4da46b0f..20187b3d 100644 --- a/src/Core_Command.php +++ b/src/Core_Command.php @@ -977,8 +977,10 @@ private static function get_clean_basedomain() { * [--extra] * : Show extended version information. * - * Note: to retrieve the database revision for an individual subsite in a Multisite installation, - * use `wp option get db_version --url=`. See also `wp core check-update-db`. + * Note: In a Multisite installation, `wp core version --extra` reports the expected database + * revision from `wp-includes/version.php`, not the per-site `db_version` stored in each + * subsite's options table. To retrieve a subsite's stored database revision, use + * `wp option get db_version --url=`. See also `wp core check-update-db`. * * ## EXAMPLES *