Skip to content

Commit

Permalink
(dev/wordpress#85) Fix version number reported within WordPress admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Jan 15, 2021
1 parent fb65097 commit cadf8ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distmaker/dists/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cadf8ce

Please sign in to comment.