PluginProbe ʕ •ᴥ•ʔ
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) / 9.5.10
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) v9.5.10
9.5.11 9.5.10.1 9.5.10 trunk 9.4.0 9.4.1 9.4.2 9.4.3 9.5.0 9.5.0.1 9.5.0.2 9.5.1 9.5.2 9.5.2.2 9.5.2.3 9.5.3 9.5.3.1 9.5.3.2 9.5.4 9.5.5 9.5.6 9.5.7 9.5.8 9.5.9
really-simple-ssl / compatibility.php
really-simple-ssl Last commit date
assets 1 month ago core 1 month ago languages 1 month ago lets-encrypt 1 month ago lib 1 month ago mailer 1 month ago modal 1 month ago placeholders 1 month ago progress 1 month ago security 1 month ago settings 1 month ago testssl 1 month ago upgrade 1 month ago .wp-env.json 1 month ago SECURITY.md 1 month ago class-admin.php 1 month ago class-cache.php 1 month ago class-certificate.php 1 month ago class-front-end.php 1 month ago class-installer.php 1 month ago class-mixed-content-fixer.php 1 month ago class-multisite.php 1 month ago class-server.php 1 month ago class-site-health.php 1 month ago class-wp-cli.php 1 month ago compatibility.php 1 month ago force-deactivate.txt 1 month ago functions.php 1 month ago index.php 1 month ago readme.txt 1 month ago rector.php 1 month ago rlrsssl-really-simple-ssl.php 1 month ago rsssl-auto-loader.php 1 month ago sbom.json.gz 1 month ago ssl-test-page.php 1 month ago system-status.php 1 month ago uninstall.php 1 month ago upgrade.php 1 month ago
compatibility.php
58 lines
1 <?php
2 defined('ABSPATH') or die();
3 /**
4 * File to prevent fatal errors when used with older pro versions
5 * @deprecated
6 */
7 if ( is_admin() && rsssl_user_can_manage() ) {
8 class really_simple_ssl_legacy{
9 public $site_has_ssl;
10 public $ssl_enabled;
11 public function generate_enable_link(){}
12 public function find_wp_config_path(){return '-';}
13 public function contains_hsts(){}
14 public function get_recommended_security_headers(){return [];}
15 public function notice_html(){}
16 }
17 class rsssl_help_legacy {
18 public function get_help_tip(){}
19 }
20 class rsssl_mixed_content_fixer_legacy {
21 public function fix_mixed_content(){}
22 }
23 class rsssl_multisite_legacy {
24 public $ssl_enabled_networkwide;
25 public $mixed_content_admin;
26 public $cert_expiration_warning;
27 public $selected_networkwide_or_per_site;
28 public function plugin_network_wide_active(){
29 return false;
30 }
31 }
32
33 add_action('plugins_loaded', 'rsssl_compatibility_mode', 9);
34 function rsssl_compatibility_mode() {
35 if ( ! function_exists( 'get_plugin_data' ) ) {
36 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
37 }
38 $plugin_data = false;
39 $ms_file = WP_CONTENT_DIR . '/plugins/really-simple-ssl-pro-multisite/really-simple-ssl-pro-multisite.php';
40 $pro_file = WP_CONTENT_DIR . '/plugins/really-simple-ssl-pro/really-simple-ssl-pro.php';
41 if ( file_exists( $ms_file ) && is_plugin_active('really-simple-ssl-pro-multisite/really-simple-ssl-pro-multisite.php') ) {
42 $plugin_data = get_plugin_data( $ms_file, false, false );
43 } else if ( file_exists( $pro_file ) && is_plugin_active('really-simple-ssl-pro/really-simple-ssl-pro.php')) {
44 $plugin_data = get_plugin_data( $pro_file, false, false );
45 }
46
47 if ( $plugin_data ) {
48 $version = $plugin_data['Version'] ?? false;
49 if ( version_compare( $version, '6.0', '<' ) ) {
50 REALLY_SIMPLE_SSL::instance()->really_simple_ssl = new really_simple_ssl_legacy();
51 REALLY_SIMPLE_SSL::instance()->rsssl_mixed_content_fixer = new rsssl_mixed_content_fixer_legacy();
52 REALLY_SIMPLE_SSL::instance()->rsssl_help = new rsssl_help_legacy();
53 REALLY_SIMPLE_SSL::instance()->rsssl_multisite = new rsssl_multisite_legacy();
54 }
55 }
56
57 }
58 }