Coding standard updates

This commit is contained in:
Iulia Cazan 2019-05-23 08:58:13 +03:00
parent 051277d26e
commit f49cec5108
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class WC_Meta_Box_Product_Images {
continue;
}
?>
<li class="image" data-attachment_id="<?php echo (int) $attachment_id; ?>">
<?php echo $attachment; // WPCS: XSS OK. ?>
<li class="image" data-attachment_id="<?php echo esc_attr( $attachment_id ); ?>">
<?php echo $attachment; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<ul class="actions">
<li><a href="#" class="delete tips" data-tip="<?php esc_attr_e( 'Delete image', 'woocommerce' ); ?>"><?php esc_html_e( 'Delete', 'woocommerce' ); ?></a></li>
</ul>