woothemes/woocommerce — pull request #6002 by tszming (2014-08-10 08:54:59+00:00)
Title: Better ajax checking

Not all ajax calls to WordPress are using `admin-ajax.php`, e.g. the theme customizer preview invoke an ajax call the the home url. Consider if your admin is protected by https and when you invoke an ajax call to the home url AND you have the `unforce_https_template_redirect` enabled, it will redirect to the non-https version of the home url, and break the theme preview feature.

So, by fixing `is_ajax ` function and it will make the `WC_HTTPS::unforce_https_template_redirect` work properly.