id = 'ssl'; $this->title = __( 'SSL', 'better-wp-security' ); $this->description = __( 'Configure use of SSL to ensure that communications between browsers and the server are secure.', 'better-wp-security' ); $this->type = 'recommended'; parent::__construct(); } public function enqueue_scripts_and_styles() { $vars = array( 'translations' => array( 'ssl_warning' => __( 'Are you sure you want to enable SSL? If your server does not support SSL you will be locked out of your WordPress Dashboard.', 'better-wp-security' ), ), ); wp_enqueue_script( 'itsec-ssl-admin-script', plugins_url( 'js/settings-page.js', __FILE__ ), array( 'jquery' ), $this->script_version, true ); wp_localize_script( 'itsec-ssl-admin-script', 'itsec_ssl', $vars ); } protected function render_description( $form ) { ?>

network sniffing, could speed up performance of your site (depending on server configuration), and could improve your site\'s search engine rankings.', 'better-wp-security' ), array( 'a' => array( 'href' => array() ) ) ); ?>

esc_html__( 'Disabled', 'better-wp-security' ), 'enabled' => esc_html__( 'Enabled', 'better-wp-security' ), 'advanced' => esc_html__( 'Advanced', 'better-wp-security' ), ); if ( 100 === $ssl_support_probability ) { $require_ssl_options['enabled'] = esc_html( 'Enabled (recommended)', 'better-wp-security' ); } $frontend_modes = array( 0 => esc_html__( 'Off', 'better-wp-security' ), 1 => esc_html__( 'Per Content', 'better-wp-security' ), 2 => esc_html__( 'Whole Site', 'better-wp-security' ), ); if ( 'advanced' === $settings['require_ssl'] ) { $hide_advanced_setting = ''; } else { $hide_advanced_setting = ' style="display:none;"'; } ?>

0 ) : ?>

> >
add_select( 'require_ssl', $require_ssl_options ); ?>
  • Disabled - Use the site\'s default handling of page requests.', 'better-wp-security' ), array( 'strong' => array() ) ); ?>
  • Enabled - Redirect all http page requests to https.', 'better-wp-security' ), array( 'strong' => array() ) ); ?>
  • Advanced - Choose different settings for front-end and dashboard page requests.', 'better-wp-security' ), array( 'strong' => array() ) ); ?>
add_select( 'frontend', $frontend_modes ); ?>

add_checkbox( 'admin' ); ?>