From cadf8ce27aebf92606f890b4701d1376696eecbb Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 13 Jan 2021 20:09:38 -0800 Subject: [PATCH] (dev/wordpress#85) Fix version number reported within WordPress admin UI --- distmaker/dists/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distmaker/dists/common.sh b/distmaker/dists/common.sh index b0b6a1bdfe..7c07c8ae71 100644 --- a/distmaker/dists/common.sh +++ b/distmaker/dists/common.sh @@ -232,8 +232,8 @@ function dm_install_wordpress() { "$repo/./" "$to/./" ## Need --exclude=civicrm for self-building on WP site - dm_preg_edit '/^Version: [0-9\.]+/m' "Version: $DM_VERSION" "$to/civicrm.php" - dm_preg_edit "/^define\( \'CIVICRM_PLUGIN_VERSION\',\W'[0-9\.]+/m" "define( 'CIVICRM_PLUGIN_VERSION', '$DM_VERSION" "$to/civicrm.php" + dm_preg_edit '/^([ \*]*)Version: [0-9\.]+/m' "\1Version: $DM_VERSION" "$to/civicrm.php" + dm_preg_edit "/^define\( *\'CIVICRM_PLUGIN_VERSION\', *'[0-9\.]+/m" "define('CIVICRM_PLUGIN_VERSION', '$DM_VERSION" "$to/civicrm.php" } ## Generate the composer "vendor" folder -- 2.25.1