Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/content-...
File: content-protector.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Plugin Name: Passster
[3] Fix | Delete
* Plugin URI: https://patrickposner.dev
[4] Fix | Delete
* Description: A simple plugin to password-protect your complete website, some pages/posts or just parts of your content.
[5] Fix | Delete
* Version: 4.2.6.5
[6] Fix | Delete
* Author: Patrick Posner
[7] Fix | Delete
* Author URI: https://patrickposner.dev
[8] Fix | Delete
* License: GPL-2.0+
[9] Fix | Delete
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
[10] Fix | Delete
* Text Domain: content-protector
[11] Fix | Delete
* Domain Path: /languages
[12] Fix | Delete
*
[13] Fix | Delete
*/
[14] Fix | Delete
define( 'PASSSTER_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
[15] Fix | Delete
define( 'PASSSTER_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
[16] Fix | Delete
define( 'PASSSTER_VERSION', '4.2.6.5' );
[17] Fix | Delete
// run plugin.
[18] Fix | Delete
[19] Fix | Delete
if ( !function_exists( 'passster_run_plugin' ) ) {
[20] Fix | Delete
add_action( 'plugins_loaded', 'passster_run_plugin' );
[21] Fix | Delete
/**
[22] Fix | Delete
* Run plugin
[23] Fix | Delete
*
[24] Fix | Delete
* @return void
[25] Fix | Delete
* @throws Exception
[26] Fix | Delete
*/
[27] Fix | Delete
function passster_run_plugin()
[28] Fix | Delete
{
[29] Fix | Delete
// Include files.
[30] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-conditional.php';
[31] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-helper.php';
[32] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-form.php';
[33] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-ajax.php';
[34] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-public.php';
[35] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-migrator.php';
[36] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-block-editor.php';
[37] Fix | Delete
require_once PASSSTER_PATH . '/inc/class-ps-rest-handler.php';
[38] Fix | Delete
// admin.
[39] Fix | Delete
require_once PASSSTER_PATH . '/inc/admin/inc/class-ps-admin-settings.php';
[40] Fix | Delete
require_once PASSSTER_PATH . '/inc/admin/inc/class-ps-admin.php';
[41] Fix | Delete
require_once PASSSTER_PATH . '/inc/admin/inc/class-ps-meta.php';
[42] Fix | Delete
require_once PASSSTER_PATH . '/inc/admin/inc/class-ps-dynamic-styles.php';
[43] Fix | Delete
// load Freemius.
[44] Fix | Delete
require_once PASSSTER_PATH . '/inc/freemius-setup.php';
[45] Fix | Delete
// localize.
[46] Fix | Delete
$textdomain_dir = plugin_basename( dirname( __FILE__ ) ) . '/languages';
[47] Fix | Delete
load_plugin_textdomain( 'content-protector', false, $textdomain_dir );
[48] Fix | Delete
if ( !get_option( 'passster_secure_key' ) ) {
[49] Fix | Delete
add_option( 'passster_secure_key', bin2hex( random_bytes( 32 ) ) );
[50] Fix | Delete
}
[51] Fix | Delete
passster\PS_Admin::get_instance();
[52] Fix | Delete
passster\PS_Admin_Settings::get_instance();
[53] Fix | Delete
passster\PS_Meta::get_instance();
[54] Fix | Delete
passster\PS_Dynamic_Styles::get_instance();
[55] Fix | Delete
passster\PS_Form::get_instance();
[56] Fix | Delete
passster\PS_Ajax::get_instance();
[57] Fix | Delete
passster\PS_Public::get_instance();
[58] Fix | Delete
passster\PS_Block_Editor::get_instance();
[59] Fix | Delete
passster\PS_Rest_Handler::get_instance();
[60] Fix | Delete
// Maybe migrate settings.
[61] Fix | Delete
$options = get_option( 'passster' );
[62] Fix | Delete
if ( empty($options) ) {
[63] Fix | Delete
passster\PS_Migrator::migrate();
[64] Fix | Delete
}
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function