protected function updateHandler() { parent::updateHandler(); if (version_compare($this->getVersion(), '3.2.0', '<')) { $oWp = $this->loadWpFunctionsProcessor(); $sOldKey = 'hlt_bootstrapcss_plugin_options'; $aCurrentSettings = $oWp->getOption($sOldKey); $aOptionsToMigrate = array('hide_dashboard_rss_feed', 'delete_on_deactivate'); foreach ($aOptionsToMigrate as $sOptionKey) { $this->setOpt($sOptionKey, $aCurrentSettings[$sOptionKey]); } } }