WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33121, comment 28


Ignore:
Timestamp:
07/03/2020 02:40:37 PM (3 months ago)
Author:
yura1980
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33121, comment 28

    initial v1  
    1212> Fixes #33121.
    1313> }}}
     14I'm trying to modify HTML markup inside WooCommerce Gutenberg block using this filter:
     15
     16{{{
     17woocommerce_blocks_product_grid_item_html
     18}}}
     19
     20wp_kses and wp_kses_post functions stripping out 'add to cart' button's data attributes with underscore sign:
     21
     22{{{
     23data-product_id
     24data-product_sku
     25}}}
     26
     27
     28I'm wondering can I prevent stripping these attributes by wp_kses function?