Sanitize html classe in wc_body_class for #7735

This commit is contained in:
Claudio Sanches 2015-03-17 13:39:44 -03:00
parent 193e3d167f
commit 4f7e59e743
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
}