2000 || ! preg_match( '/\p{L}/u', $text ) ) { return false; } if ( null === $this->skip_domains ) { $this->skip_domains = (array) apply_filters( 'blocklingo_strings_skip_domains', array( 'default' ) ); } if ( in_array( $domain, $this->skip_domains, true ) ) { return false; } $skip_context = (string) apply_filters( 'blocklingo_strings_skip_context', '/(?:\bname|^block .+|^style variation.*|^pattern .+|^template part area)$/i' ); return '' === $context || '' === $skip_context || ! preg_match( $skip_context, $context ); } /** Tests: read the filters again. */ public function reset(): void { $this->skip_domains = null; } }