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/troubles...
File: class-wpml-troubleshoot-action.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class WPML_Troubleshoot_Action
[3] Fix | Delete
* @author onTheGoSystems
[4] Fix | Delete
*/
[5] Fix | Delete
class WPML_Troubleshoot_Action {
[6] Fix | Delete
[7] Fix | Delete
const SYNC_POSTS_TAXONOMIES_SLUG = 'synchronize_posts_taxonomies';
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* @return bool
[11] Fix | Delete
*/
[12] Fix | Delete
public function is_valid_request() {
[13] Fix | Delete
$response = false;
[14] Fix | Delete
[15] Fix | Delete
if ( array_key_exists( 'nonce', $_POST ) && array_key_exists( 'debug_action', $_POST )
[16] Fix | Delete
&& self::SYNC_POSTS_TAXONOMIES_SLUG === $_POST['debug_action']
[17] Fix | Delete
) {
[18] Fix | Delete
$response = wp_verify_nonce( $_POST['nonce'], $_POST['debug_action'] );
[19] Fix | Delete
[20] Fix | Delete
if ( ! $response ) {
[21] Fix | Delete
wp_send_json_error( array( 'message' => esc_html__( 'Invalid nonce.', 'sitepress' ) ) );
[22] Fix | Delete
return $response;
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
return $response;
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function