Merge pull request #7735 from jackgregory/patch-1

Include endpoints in body class filter
This commit is contained in:
Mike Jolley 2015-03-17 14:36:48 +00:00
commit bf8f7ba248
1 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,12 @@ 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}";
}
}
return array_unique( $classes );
}