woothemes/woocommerce — pull request #963 by om4james (2012-04-19 07:21:24+00:00)
Title: WooCommerce <body> classes should be sanitised

Currently, WP theme names that contain spaces and other strange characters cause problem with the `

` classes that are added.

For example, Twenty Eleven currently outputs these classes (note the space between "theme-twenty" and "eleven"):

`

`

After this change is applied, we get:

`

`

This change also ensures that any other WooCommerce body classes are correct sanitised/filtered before being output.