Update (minor) Core/bin/checl-wordpressversion, removing the db check from being authoritative due to false reading with 6.7

This commit is contained in:
David Sainty 2024-11-20 13:58:57 +11:00
parent 60f6b0b799
commit 5e09a7d2af

View File

@ -132,12 +132,11 @@ get_wp_version() {
echo "Admin page reports version: ${admin_version:-not found}" >&2 echo "Admin page reports version: ${admin_version:-not found}" >&2
} }
# Compare all versions and take the highest one # Compare all versions and take the highest one, excluding db version
local versions=() local versions=()
[ ! -z "$wpcli_version" ] && versions+=("$wpcli_version") [ ! -z "$wpcli_version" ] && versions+=("$wpcli_version")
[ ! -z "$php_version" ] && versions+=("$php_version") [ ! -z "$php_version" ] && versions+=("$php_version")
[ ! -z "$file_version" ] && versions+=("$file_version") [ ! -z "$file_version" ] && versions+=("$file_version")
[ ! -z "$db_version" ] && versions+=("$db_version")
[ ! -z "$admin_version" ] && versions+=("$admin_version") [ ! -z "$admin_version" ] && versions+=("$admin_version")
if [ ${#versions[@]} -eq 0 ]; then if [ ${#versions[@]} -eq 0 ]; then