From 386b7a1c6d0d1c51d8450522550f69c4f711f9b2 Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Thu, 30 May 2024 14:12:03 -0400 Subject: [PATCH] updated - link_blank rule allowed phrases --- includes/rules/link_blank.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/rules/link_blank.php b/includes/rules/link_blank.php index 06fe962a..7902e954 100644 --- a/includes/rules/link_blank.php +++ b/includes/rules/link_blank.php @@ -91,15 +91,11 @@ function edac_check_link_blank_text( $text ) { $text = strtolower( $text ); - // phrases. $allowed_phrases = [ - __( 'opens a new window', 'accessibility-checker' ), - __( 'opens a new tab', 'accessibility-checker' ), - __( 'opens new window', 'accessibility-checker' ), - __( 'opens new tab', 'accessibility-checker' ), + __( 'new window', 'accessibility-checker' ), + __( 'new tab', 'accessibility-checker' ), ]; - // check if text contains any of the allowed phrases. foreach ( $allowed_phrases as $allowed_phrase ) { if ( strpos( $text, $allowed_phrase ) !== false ) { return true;