Commit 1829630e authored by totten's avatar totten

Installation UI - Call Setup::assertProtocolCompatibility()

At the moment, we don't bundle `civicrm-setup` directly with all tarballs, and
it would be easy for an admin to mistakenly use an incompatible build. This
generates an error if the library is mismatched.
parent f6584a40
......@@ -805,6 +805,7 @@ class CiviCRM_For_WordPress {
require_once $loader;
require_once implode(DIRECTORY_SEPARATOR, [$civicrmCore, 'CRM', 'Core', 'ClassLoader.php']);
CRM_Core_ClassLoader::singleton()->register();
\Civi\Setup::assertProtocolCompatibility(0.1);
\Civi\Setup::init([
'cms' => 'WordPress',
'srcPath' => $civicrmCore,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment