/** * Begins database updates * * @since 1.3.6 * * @return void **/ public function upgrades() { if (empty($_GET['action']) || 'shopp-upgrade' != $_GET['action']) { return; } // Prevent unauthorized users from upgrading (without giving admin's a chance to backup) if (!current_user_can('activate_plugins')) { return; } // Prevent outsiders from the upgrade process check_admin_referer('shopp-upgrade'); $Installer = new ShoppInstallation(); $Installer->upgrade(); $welcome = add_query_arg(array('page' => $this->Admin->pagename('welcome')), admin_url('admin.php')); Shopp::redirect($welcome, true); }