Merge pull request #949 from thenbrent/master
Replacing deprecated get_current_theme()
This commit is contained in:
commit
0e43df8811
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue