log_entry( 'Checking if SSL enabled' ); $url = str_replace( 'http://', 'https://', get_site_url() ); $headers = $this->get_curl_header( $url ); if ( empty( $headers ) ) { $status = $this->flag_open; $guide_link = sprintf( "", onecom_generic_locale_link( '', get_locale(), 1 ) ); $title = __( 'SSL certificate', 'onecom-wp' ); $desc = sprintf( __( 'Your site isn’t using HTTPS. Visitors on your site might get a warning that your website isn’t secure and it can also have a negative effect on your SEO rating. %sContact support%s', 'onecom-wp' ), $guide_link, '' ); } else { $status = $this->flag_resolved; $desc = ''; $title = __( 'Your site has valid SSL certificate!', 'onecom-wp' ); } $this->log_entry( 'Finished checking for SSL' ); //@todo oc_sh_save_result( 'ssl_certificate', $result[ $this->status_key ] ); return $this->format_result( $status, $title, $desc ); } }