diff --git a/classes/controllers/FrmSMTPController.php b/classes/controllers/FrmSMTPController.php index be9d5dbad7..cd1ce97fb7 100644 --- a/classes/controllers/FrmSMTPController.php +++ b/classes/controllers/FrmSMTPController.php @@ -246,15 +246,14 @@ protected function output_section_step_install() {
+ %6$s + ', FrmAppHelper::kses( $icon, array( 'a', 'i', 'span', 'use', 'svg' ) ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped esc_html( $label ), esc_html__( 'Install WP Mail SMTP from the WordPress.org plugin repository.', 'formidable' ), esc_attr( $step['plugin'] ), esc_attr( $step['button_class'] ), - esc_attr( $step['button_action'] ), esc_html( $step['button_text'] ) ); } @@ -321,18 +320,16 @@ protected function get_data_step_install() { $this->output_data['plugin_setup'] = false; $step = array( - 'icon' => 'frm_step1_icon', - 'button_action' => '', + 'icon' => 'frm_step1_icon', ); $is_installed = $this->output_data['plugin_installed'] || $this->output_data['pro_plugin_installed']; if ( ! $is_installed ) { // Return the download url. - $step['button_text'] = __( 'Install WP Mail SMTP', 'formidable' ); - $step['button_class'] = 'frm-install-addon'; - $step['button_action'] = __( 'Install', 'formidable' ); - $step['plugin'] = $this->config['lite_download_url']; + $step['button_text'] = __( 'Install WP Mail SMTP', 'formidable' ); + $step['button_class'] = 'frm-install-addon'; + $step['plugin'] = $this->config['lite_download_url']; return $step; } @@ -346,9 +343,8 @@ protected function get_data_step_install() { $step['button_text'] = __( 'WP Mail SMTP Installed & Activated', 'formidable' ); $step['button_class'] = 'grey disabled'; } else { - $step['button_text'] = __( 'Activate WP Mail SMTP', 'formidable' ); - $step['button_class'] = 'frm-activate-addon'; - $step['button_action'] = __( 'Activate', 'formidable' ); + $step['button_text'] = __( 'Activate WP Mail SMTP', 'formidable' ); + $step['button_class'] = 'frm-activate-addon'; } return $step; diff --git a/classes/helpers/FrmFormMigratorsHelper.php b/classes/helpers/FrmFormMigratorsHelper.php index 7f6ba6b201..c9dde2e3ce 100644 --- a/classes/helpers/FrmFormMigratorsHelper.php +++ b/classes/helpers/FrmFormMigratorsHelper.php @@ -165,7 +165,7 @@ private static function install_button( $install, $label = '' ) { } } else { ?> - +