Update woocommerce.php

is_admin() return a boolean
Merge pull request #2801 from sylwit/patch-1

Update woocommerce.php