Skip to content
Snippets Groups Projects
Commit cadf8ce2 authored by totten's avatar totten
Browse files

(wordpress#85) Fix version number reported within WordPress admin UI

parent fb65097d
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment