AdminPageFrameworkLoader_AdminPageWelcome::_replyToHandleRedirects PHP Method

_replyToHandleRedirects() public method

This is called to prevent the plugin from performing the redirect when the plugin is not activated or intervene the activation process. If this is called in the start() method above, it will redirect the user to the page during the activation process and the user gets a page that is not created because the plugin is not activated.
Since: 3.5.0
    public function _replyToHandleRedirects()
    {
        // When newly installed, the 'welcomed' value is not set.
        $_oOption = AdminPageFrameworkLoader_Option::getInstance();
        if (!$_oOption->get('welcomed')) {
            $this->_setInitialOptions($_oOption, AdminPageFrameworkLoader_Registry::VERSION);
            $this->_goToWelcomePage();
            // will exit
        }
        if ($_oOption->hasUpgraded()) {
            $this->_setInitialOptions($_oOption, $_oOption->get('version_saved'));
            $this->_goToWelcomePage();
            // will exit
        }
    }