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/clone/wp-conte.../plugins/wordpres.../includes
File: class-wws-gdpr-compliance.php
<?php
[0] Fix | Delete
// Preventing to direct access
[1] Fix | Delete
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Plugin GDPR Compliance
[5] Fix | Delete
*/
[6] Fix | Delete
class WWS_GDPR_Compliance {
[7] Fix | Delete
[8] Fix | Delete
public function __construct() {
[9] Fix | Delete
if ( 'yes' !== get_option( 'wws_gdpr_status' ) ) {
[10] Fix | Delete
return;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
add_action( 'wws_action_plugin', array( $this, 'display_gdpr' ) );
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
public function display_gdpr() {
[17] Fix | Delete
?>
[18] Fix | Delete
<div class="wws-gdpr">
[19] Fix | Delete
<div>
[20] Fix | Delete
<label for="wws-gdpr-checkbox">
[21] Fix | Delete
<input type="checkbox" id="wws-gdpr-checkbox"> <?php echo $this->get_gdpr_link(); ?>
[22] Fix | Delete
</label>
[23] Fix | Delete
</div>
[24] Fix | Delete
</div>
[25] Fix | Delete
<?php
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
public function get_gdpr_link() {
[30] Fix | Delete
$gdpr_page_id = get_option( 'wws_gdpr_privacy_page' );
[31] Fix | Delete
[32] Fix | Delete
$gdpr_msg = str_replace(
[33] Fix | Delete
'{policy_url}',
[34] Fix | Delete
'<a href="' . get_permalink( $gdpr_page_id ) . '" target="_blank">' . get_the_title( $gdpr_page_id ) . '</a>',
[35] Fix | Delete
get_option( 'wws_gdpr_message' )
[36] Fix | Delete
);
[37] Fix | Delete
[38] Fix | Delete
return do_shortcode( $gdpr_msg );
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
} // end of WWS_GDPR_Compliance class
[42] Fix | Delete
[43] Fix | Delete
$wws_gdpr_compliance = new WWS_GDPR_Compliance;
[44] Fix | Delete
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function