Sanitize html classe in wc_body_class for #7735
This commit is contained in:
parent
193e3d167f
commit
4f7e59e743
|
@ -188,10 +188,10 @@ function wc_body_class( $classes ) {
|
|||
if ( is_store_notice_showing() ) {
|
||||
$classes[] = 'woocommerce-demo-store';
|
||||
}
|
||||
|
||||
|
||||
foreach ( WC()->query->query_vars as $key => $value ) {
|
||||
if ( is_wc_endpoint_url( $key ) ) {
|
||||
$classes[] = "woocommerce-{$key}";
|
||||
$classes[] = 'woocommerce-' . sanitize_html_class( $key );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue