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/utilitie...
File: class-wpml-wp-post.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class WPML_WP_Post {
[2] Fix | Delete
/** @var WPDB $wpdb */
[3] Fix | Delete
public $wpdb;
[4] Fix | Delete
[5] Fix | Delete
/** @var int */
[6] Fix | Delete
private $post_id;
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* @param WPDB $wpdb
[10] Fix | Delete
* @param int $post_id
[11] Fix | Delete
*/
[12] Fix | Delete
public function __construct( WPDB $wpdb, $post_id ) {
[13] Fix | Delete
$this->wpdb = $wpdb;
[14] Fix | Delete
$this->post_id = $post_id;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* @param array $post_data_array
[19] Fix | Delete
* @param bool $direct_db_update
[20] Fix | Delete
*/
[21] Fix | Delete
public function update( array $post_data_array, $direct_db_update = false) {
[22] Fix | Delete
if ( $direct_db_update ) {
[23] Fix | Delete
$this->wpdb->update( $this->wpdb->posts, $post_data_array, array( 'ID' => $this->post_id ) );
[24] Fix | Delete
clean_post_cache( $this->post_id );
[25] Fix | Delete
} else {
[26] Fix | Delete
$post_data_array['ID'] = $this->post_id;
[27] Fix | Delete
wpml_update_escaped_post( $post_data_array );
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function