Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add redirect source to wp_redirect_to_ssl #610

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class-front-end.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function wp_redirect_to_ssl(): void {
if ( ! is_ssl() && ! ( defined( 'rsssl_no_wp_redirect' ) && rsssl_no_wp_redirect ) ) {
$redirect_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$redirect_url = apply_filters( 'rsssl_wp_redirect_url', $redirect_url );
wp_redirect( $redirect_url, 301 );
wp_redirect( $redirect_url, 301, 'WordPress - Really Simple SSL' );
exit;
}
}
Expand Down
3 changes: 1 addition & 2 deletions class-multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,11 @@ public function activate_ssl_networkwide()

public function deactivate()
{
if (!rsssl_user_can_manage()) {
if ( !rsssl_user_can_manage() ) {
return;
}
$ssl_was_enabled = rsssl_get_option('ssl_enabled');
delete_site_option('rsssl_network_activation_status');
update_option('ssl_enabled', false);
//main site first
$site_id = get_main_site_id();
switch_to_blog($site_id);
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Donate link: https://www.paypal.me/reallysimplessl
Tags: Security, SSL, https, HSTS, mixed content
Requires at least: 5.9
License: GPL2
Tested up to: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 8.1.5
Stable tag: 8.1.6

Easily improve site security with WordPress hardening, vulnerability detection and SSL certificate generation.

Expand Down Expand Up @@ -131,6 +131,12 @@ The plugin checks your certificate before enabling, but if, for example, you mig
If you can't deactivate, do not just remove the plugin folder to uninstall! Follow these [instructions](https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/) instead.

== Changelog ==
= 8.1.6 =
* July 15th, 2024
* Fix: code for two modules loaded even if not enabled.
* Improvement: added filter to write to other file than the wp-config.php
* Improvement: added a constant which prevents inserting the .htaccess auto prepend rule

= 8.1.5 =
* June 21th, 2024
* Fix: documentation links to website broken
Expand Down
4 changes: 2 additions & 2 deletions rlrsssl-really-simple-ssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Really Simple SSL
* Plugin URI: https://really-simple-ssl.com
* Description: Lightweight SSL & Hardening Plugin
* Version: 8.1.5
* Version: 8.1.6
* Requires at least: 5.9
* Requires PHP: 7.4
* Author: Really Simple Plugins
Expand Down Expand Up @@ -103,7 +103,7 @@ private function setup_constants()
if ( !defined('rsssl_file') ){
define('rsssl_file', __FILE__);
}
define('rsssl_version', '8.1.5');
define('rsssl_version', '8.1.6');
define('rsssl_le_cron_generation_renewal_check', 20);
define('rsssl_le_manual_generation_renewal_check', 15);
}
Expand Down