Skip to content

Commit 3e30f66

Browse files
swissspidyCopilot
andauthored
Docs: Add note about retrieving db version on Multisite (#319)
* Docs: Add not about retrieving db version on Multisite * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 0971545 commit 3e30f66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Core_Command.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,11 @@ private static function get_clean_basedomain() {
977977
* [--extra]
978978
* : Show extended version information.
979979
*
980+
* Note: In a Multisite installation, `wp core version --extra` reports the expected database
981+
* revision from `wp-includes/version.php`, not the per-site `db_version` stored in each
982+
* subsite's options table. To retrieve a subsite's stored database revision, use
983+
* `wp option get db_version --url=<subsite>`. See also `wp core check-update-db`.
984+
*
980985
* ## EXAMPLES
981986
*
982987
* # Display the WordPress version

0 commit comments

Comments
 (0)