| @@ -51,9 +51,8 @@ | ||
| 51 | 51 | |
| 52 | 52 | add_filter( 'wp_mail_smtp_is_white_labeled', '__return_true' ); |
| 53 | 53 | |
| 54 | 54 | $self = new self(); |
| 55 | - | |
| 56 | 55 | if ( wp_doing_ajax() ) { |
| 57 | 56 | add_action( 'wp_ajax_frm_smtp_page_check_plugin_status', array( $self, 'ajax_check_plugin_status' ) ); |
| 58 | 57 | } |
| 59 | 58 | |
| @@ -74,10 +73,8 @@ | ||
| 74 | 73 | |
| 75 | 74 | /** |
| 76 | 75 | * Customize the upgrade link. |
| 77 | 76 | * |
| 78 | - * @param string $link | |
| 79 | - * | |
| 80 | 77 | * @return string |
| 81 | 78 | */ |
| 82 | 79 | public function link( $link ) { |
| 83 | 80 | $new_link = 'formidableforms.com/go-wp-mail-smtp/?urllink=wpmailsmtp%2Ecom%2Flite%2Dupgrade&'; |
| @@ -88,12 +85,8 @@ | ||
| 88 | 85 | /** |
| 89 | 86 | * Don't nag people to install WPForms |
| 90 | 87 | * |
| 91 | 88 | * @since 4.04.04 |
| 92 | - * | |
| 93 | - * @param array $upsell | |
| 94 | - * | |
| 95 | - * @return array | |
| 96 | 89 | */ |
| 97 | 90 | public static function remove_wpforms_nag( $upsell ) { |
| 98 | 91 | if ( is_array( $upsell ) ) { |
| 99 | 92 | foreach ( $upsell as $k => $plugin ) { |
| @@ -320,9 +313,8 @@ | ||
| 320 | 313 | 'button_action' => '', |
| 321 | 314 | ); |
| 322 | 315 | |
| 323 | 316 | $is_installed = $this->output_data['plugin_installed'] || $this->output_data['pro_plugin_installed']; |
| 324 | - | |
| 325 | 317 | if ( ! $is_installed ) { |
| 326 | 318 | // Return the download url. |
| 327 | 319 | $step['button_text'] = __( 'Install WP Mail SMTP', 'formidable' ); |
| 328 | 320 | $step['button_class'] = 'frm-install-addon'; |