initializeVersionPress() public method

Activates VersionPress plugin and runs the Initializer. For just activation, use activateVersionPress().
Ejemplo n.º 1
0
 /**
  * Check if site is set up and VersionPress fully activated, and if not, do so. The $force
  * parametr may force this.
  *
  * @param bool $force Force all the automation actions to be taken regardless of the site state
  */
 private static function setUpSite($force)
 {
     if ($force || !self::$wpAutomation->isSiteSetUp()) {
         self::$wpAutomation->setUpSite();
     }
     if ($force || !self::$wpAutomation->isVersionPressInitialized()) {
         self::$wpAutomation->copyVersionPressFiles();
         self::$wpAutomation->initializeVersionPress();
     }
 }
Ejemplo n.º 2
0
 /**
  * @param WpAutomation $wpAutomation
  */
 private function prepareSite($wpAutomation)
 {
     $wpAutomation->setUpSite();
     $wpAutomation->copyVersionPressFiles();
     $wpAutomation->disableDebugger();
     $wpAutomation->activateVersionPress();
     $wpAutomation->initializeVersionPress();
 }