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/password.../includes
File: class-ppw-activator.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Fired during plugin activation
[3] Fix | Delete
*
[4] Fix | Delete
* @link https://passwordprotectwp.com
[5] Fix | Delete
* @since 1.0.0
[6] Fix | Delete
*
[7] Fix | Delete
* @package Password_Protect_Page
[8] Fix | Delete
* @subpackage Password_Protect_Page/includes
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Fired during plugin activation.
[13] Fix | Delete
*
[14] Fix | Delete
* This class defines all code necessary to run during the plugin's activation.
[15] Fix | Delete
*
[16] Fix | Delete
* @since 1.0.0
[17] Fix | Delete
* @package Password_Protect_Page
[18] Fix | Delete
* @subpackage Password_Protect_Page/includes
[19] Fix | Delete
* @author BWPS <hello@preventdirectaccess.com>
[20] Fix | Delete
*/
[21] Fix | Delete
class PPW_Activator {
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Short Description. (use period)
[25] Fix | Delete
*
[26] Fix | Delete
* Long Description.
[27] Fix | Delete
*
[28] Fix | Delete
* @since 1.0.0
[29] Fix | Delete
*/
[30] Fix | Delete
public static function activate() {
[31] Fix | Delete
if ( ! version_compare( PHP_VERSION, '5.6', '>=' ) ) {
[32] Fix | Delete
/* translators: %s: PHP version */
[33] Fix | Delete
$message = sprintf( esc_html__( 'Password Protect WordPress requires PHP version %s+, plugin cannot be activated.', PPW_Constants::DOMAIN ), '5.6' );
[34] Fix | Delete
$html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
[35] Fix | Delete
wp_die( wp_kses_post( $html_message ) );
[36] Fix | Delete
} elseif ( ! version_compare( get_bloginfo( 'version' ), '4.7', '>=' ) ) {
[37] Fix | Delete
/* translators: %s: PHP version */
[38] Fix | Delete
$message = sprintf( esc_html__( 'Password Protect WordPress requires WordPress version %s+. Because you are using an earlier version, the plugin cannot be activated.', PPW_Constants::DOMAIN ), '4.7' );
[39] Fix | Delete
$html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
[40] Fix | Delete
wp_die( wp_kses_post( $html_message ) );
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
if ( is_plugin_active( PPW_Constants::PRO_DIRECTORY ) ) {
[44] Fix | Delete
$installed_plugins = get_plugins();
[45] Fix | Delete
$version = $installed_plugins[ PPW_Constants::PRO_DIRECTORY ]['Version'];
[46] Fix | Delete
if ( - 1 === version_compare( $version, '1.1.0' ) ) {
[47] Fix | Delete
wp_die( wp_kses_post( __( 'You need to <a target="_blank" rel="noreferrer noopener" href="https://passwordprotectwp.com/docs/ppwp-pro-free/">update our Pro to its latest version</a> for our Password Protect WordPress plugins to work properly. You <b>must NOT delete</b> the current Free version. Otherwise, you’ll lose all your current settings data.', PPW_Constants::DOMAIN ) ) );
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function