: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
public function __construct( &$wpdb ) {
public function current_user_can_translate_strings() {
return current_user_can( 'translate' )
&& ! current_user_can( 'manage_options' )
&& ! current_user_can( 'manage_categories' )
&& ! current_user_can( 'wpml_manage_string_translation' );
public function get_user_language_pairs( $current_user ) {
return get_user_meta( $current_user->ID, $this->wpdb->prefix . 'language_pairs', true );