function downgrade_tab() { if (!$this->current_user_can_downgrade()) { $this->print_message('error', __('You do not have sufficient permissions to downgrade plugins on this site.', 'seo-ultimate')); return; } $radiobuttons = $this->get_version_radiobuttons(SU_DOWNGRADE_LIMIT, SU_VERSION, 5); if (is_array($radiobuttons)) { if (count($radiobuttons) > 1) { $this->print_message('warning', suwp::add_backup_url(__('Downgrading is provided as a convenience only and is not officially supported. Although unlikely, you may lose data in the downgrading process. It is your responsibility to backup your database before proceeding.', 'seo-ultimate'))); echo "\n<p>"; _e('From the list below, select the version to which you would like to downgrade. Then click the “Downgrade” button at the bottom of the screen.', 'seo-ultimate'); echo "</p>\n"; echo "<div class='su-xgrade'>\n"; $this->admin_form_start(); $this->radiobuttons('version', $radiobuttons); $this->admin_form_end(__('Downgrade', 'seo-ultimate')); echo "</div>\n"; } else { $this->print_message('warning', sprintf(__('Downgrading to versions earlier than %s is not supported because doing so will result the loss of some or all of your SEO Ultimate settings.', 'seo-ultimate'), SU_DOWNGRADE_LIMIT)); } } else { $this->print_message('error', __('There was an error retrieving the list of available versions. Please try again later.', 'seo-ultimate')); } }