Skip to content

Commit 67ad354

Browse files
committed
Revert "Use esc_html_e() rather than echoing esc_html()"
This reverts commit 953165b.
1 parent 953165b commit 67ad354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/validation/class-amp-validation-error-taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ public static function render_single_url_error_details( $validation_error, $term
21032103
</dd>
21042104

21052105
<dt><?php esc_html_e( 'Error code', 'amp' ); ?></dt>
2106-
<dd><code><?php esc_html_e( $validation_error['code'] ); ?></code></dd>
2106+
<dd><code><?php echo esc_html( $validation_error['code'] ); ?></code></dd>
21072107

21082108
<?php if ( AMP_Tag_And_Attribute_Sanitizer::DISALLOWED_TAG === $validation_error['code'] && isset( $validation_error['node_attributes'] ) ) : ?>
21092109
<dt><?php esc_html_e( 'Invalid markup', 'amp' ); ?></dt>

0 commit comments

Comments
 (0)