diff --git a/includes/Traits/AI_Check_Names.php b/includes/Traits/AI_Check_Names.php index 3fc22cd45..0fadb9756 100644 --- a/includes/Traits/AI_Check_Names.php +++ b/includes/Traits/AI_Check_Names.php @@ -654,7 +654,7 @@ protected function add_disallowed_section( &$parts, $decoded ) { $text .= ' (' . implode( ', ', $decoded['disallowed_type'] ) . ')'; } if ( ! empty( $text ) ) { - $parts[] = '' . __( 'đŸšĢ Disallowed:', 'plugin-check' ) . ' ' . $text; + $parts[] = 'đŸšĢ ' . esc_html__( 'Disallowed:', 'plugin-check' ) . ' ' . $text; } } @@ -669,7 +669,7 @@ protected function add_disallowed_section( &$parts, $decoded ) { */ protected function add_naming_section( &$parts, $decoded ) { if ( ! empty( $decoded['possible_naming_issues'] ) && ! empty( $decoded['naming_explanation'] ) ) { - $parts[] = '' . __( '📝 Naming:', 'plugin-check' ) . ' ' . $decoded['naming_explanation']; + $parts[] = '📝 ' . esc_html__( 'Naming:', 'plugin-check' ) . ' ' . $decoded['naming_explanation']; } } @@ -684,7 +684,7 @@ protected function add_naming_section( &$parts, $decoded ) { */ protected function add_owner_section( &$parts, $decoded ) { if ( ! empty( $decoded['possible_owner_issues'] ) && ! empty( $decoded['owner_explanation'] ) ) { - $parts[] = '' . __( 'ÂŠī¸ Owner/Trademark:', 'plugin-check' ) . ' ' . $decoded['owner_explanation']; + $parts[] = 'ÂŠī¸ ' . esc_html__( 'Owner/Trademark:', 'plugin-check' ) . ' ' . $decoded['owner_explanation']; } } @@ -699,7 +699,7 @@ protected function add_owner_section( &$parts, $decoded ) { */ protected function add_description_section( &$parts, $decoded ) { if ( ! empty( $decoded['possible_description_issues'] ) && ! empty( $decoded['description_explanation'] ) ) { - $parts[] = '' . __( '📄 Description:', 'plugin-check' ) . ' ' . $decoded['description_explanation']; + $parts[] = '📄 ' . esc_html__( 'Description:', 'plugin-check' ) . ' ' . $decoded['description_explanation']; } } @@ -715,7 +715,7 @@ protected function add_description_section( &$parts, $decoded ) { protected function add_trademarks_section( &$parts, $decoded ) { if ( ! empty( $decoded['trademarks_or_project_names_array'] ) && is_array( $decoded['trademarks_or_project_names_array'] ) ) { $trademarks = implode( ', ', array_map( 'esc_html', $decoded['trademarks_or_project_names_array'] ) ); - $parts[] = '' . __( 'â„ĸī¸ Trademarks Detected:', 'plugin-check' ) . ' ' . $trademarks; + $parts[] = 'â„ĸī¸ ' . esc_html__( 'Trademarks Detected:', 'plugin-check' ) . ' ' . $trademarks; } } @@ -745,7 +745,7 @@ protected function add_suggestions_section( &$parts, $decoded ) { } if ( ! empty( $suggestions ) ) { - $parts[] = '
' . __( '💡 Suggestions:', 'plugin-check' ) . '
' . implode( '
', $suggestions ); + $parts[] = '
💡 ' . esc_html__( 'Suggestions:', 'plugin-check' ) . '
' . implode( '
', $suggestions ); } } @@ -761,7 +761,7 @@ protected function add_suggestions_section( &$parts, $decoded ) { protected function add_language_section( &$parts, $decoded ) { if ( isset( $decoded['description_language_is_in_english'] ) && false === $decoded['description_language_is_in_english'] ) { if ( ! empty( $decoded['description_what_is_not_in_english'] ) ) { - $parts[] = '' . __( '🌐 Language:', 'plugin-check' ) . ' ' . $decoded['description_what_is_not_in_english']; + $parts[] = '🌐 ' . esc_html__( 'Language:', 'plugin-check' ) . ' ' . $decoded['description_what_is_not_in_english']; } } }