This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Truncate Really Simple Security CSP List | |
* Description: Truncates the rsssl_csp_log table on every page load. Use with caution. | |
* Author: Really Simple Security | |
* Version: 1.0 | |
*/ | |
// Prevent direct access | |
if ( ! defined( 'ABSPATH' ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Delete all legacy options that start with simplybookMePl_ | |
* @example https://example.com/?run_simplybookme_cleanup=1 | |
*/ | |
add_action('init', function () { | |
// Only run when query param is present | |
if (!isset($_GET['run_simplybookme_cleanup'])) { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// On the action admin_init | |
add_action('admin_init', function() { | |
// We remove the transient that redirects to the settings page since it might have persisted due to caching | |
delete_transient('rsssl_redirect_to_settings_page'); | |
}, 30); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Really Simple Security - Email 2FA Template Override | |
* Description: Overrides the email template for Really Simple Security's Two-Factor Authentication. | |
* Version: 1.1 | |
* Author: Really Simple Plugins | |
*/ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: RSSSL - Quiz Maker Exclusion | |
* Description: Excludes the quiz-maker slug from being reported as vulnerable in Really Simple Security. | |
* Version: 1.0 | |
* Author: Jarno (Really Simple Plugins) | |
*/ | |
defined('ABSPATH') or die(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('ABSPATH') or die(); | |
add_action('plugins_loaded', 'force_rsssl_ssl_option'); | |
function force_rsssl_ssl_option() { | |
if (function_exists('rsssl_update_option')) { | |
rsssl_update_option('ssl_enabled', true); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', function() { | |
if (defined('ABSPATH')) { | |
error_log('ABSPATH: ' . ABSPATH); | |
} | |
if (defined('WP_CONTENT_DIR')) { | |
error_log('WP_CONTENT_DIR: ' . WP_CONTENT_DIR); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Get the parent directory of the WordPress installation, and look for the wp-config.php here */ | |
add_filter('rsssl_wpconfig_path', function($path) { | |
return dirname(ABSPATH) . '/wp-config.php'; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: RSSSL Clear Scan Results | |
Description: One-time cleanup of RSSSL permissions scan results | |
Version: 1.0 | |
*/ | |
add_action('admin_init', function() { | |
delete_option('rsssl_files_with_wrong_permissions'); | |
// Remove this file after a single run |
NewerOlder