Merge pull request #949 from thenbrent/master

Replacing deprecated get_current_theme()
This commit is contained in:
Coen Jacobs 2012-04-17 22:00:44 -07:00
commit 0e43df8811
1 changed files with 3 additions and 2 deletions

View File

@ -424,8 +424,9 @@ class Woocommerce {
* Add body classes
**/
function wp_head() {
$this->add_body_class('theme-' . strtolower( get_current_theme() ));
$theme_name = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_current_theme();
$this->add_body_class( 'theme-' . strtolower( $theme_name ) );
if ( is_woocommerce() ) $this->add_body_class('woocommerce');
if ( is_checkout() ) $this->add_body_class('woocommerce-checkout');