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/network-.../componen.../db
File: NetsPostsWPMLQuery.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
namespace NetworkPosts\Components\db;
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
class NetsPostsWPMLQuery {
[6] Fix | Delete
const WPML_TRANSLATION_TABLE = 'icl_translations';
[7] Fix | Delete
[8] Fix | Delete
[9] Fix | Delete
public static function get_translation_ids( \wpdb $db, array $post_ids ): array{
[10] Fix | Delete
$translation_table = $db->prefix . self::WPML_TRANSLATION_TABLE;
[11] Fix | Delete
$id_str = join( ',', $post_ids );
[12] Fix | Delete
$query = "SELECT trid FROM $translation_table
[13] Fix | Delete
WHERE $translation_table.element_id IN ($id_str)";
[14] Fix | Delete
$rows = $db->get_results( $query, ARRAY_A );
[15] Fix | Delete
$translations = array_map( function( $row ){
[16] Fix | Delete
return $row['trid'];
[17] Fix | Delete
}, $rows );
[18] Fix | Delete
return $translations;
[19] Fix | Delete
}
[20] Fix | Delete
}
[21] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function