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/sitepres.../classes/privacy
File: class-wpml-privacy-content.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* @author OnTheGo Systems
[3] Fix | Delete
*/
[4] Fix | Delete
abstract class WPML_Privacy_Content implements IWPML_Action {
[5] Fix | Delete
[6] Fix | Delete
public function add_hooks() {
[7] Fix | Delete
add_action( 'admin_init', array( $this, 'privacy_policy' ) );
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
public function privacy_policy() {
[11] Fix | Delete
if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
[12] Fix | Delete
return;
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
$policy_text_content = $this->get_privacy_policy();
[16] Fix | Delete
if ( $policy_text_content ) {
[17] Fix | Delete
if ( is_array( $policy_text_content ) ) {
[18] Fix | Delete
$policy_text_content = '<p>' . implode( '</p><p>', $policy_text_content ) . '</p>';
[19] Fix | Delete
}
[20] Fix | Delete
wp_add_privacy_policy_content( $this->get_plugin_name(), $policy_text_content );
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* @return string
[26] Fix | Delete
*/
[27] Fix | Delete
abstract protected function get_plugin_name();
[28] Fix | Delete
[29] Fix | Delete
/**
[30] Fix | Delete
* @return string|array a single or an array of strings (plain text or HTML). Array items will be wrapped by a paragraph tag.
[31] Fix | Delete
*/
[32] Fix | Delete
abstract protected function get_privacy_policy();
[33] Fix | Delete
}
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function