Merge pull request #27610 from attitude/patch-1
Encapsulate scope of `c` variable
This commit is contained in:
commit
d7b2207e75
|
@ -348,9 +348,11 @@ function wc_body_class( $classes ) {
|
|||
function wc_no_js() {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var c = document.body.className;
|
||||
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
|
||||
document.body.className = c;
|
||||
(function () {
|
||||
var c = document.body.className;
|
||||
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
|
||||
document.body.className = c;
|
||||
})()
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue