remove notice for undefined action property of ajax request

This commit is contained in:
Harold Kyle 2014-09-24 09:12:26 -04:00
parent ab34f3d771
commit 2bf2485910
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class WC_HTTPS {
*/
public static function init() {
if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) ) {
if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && in_array( $_REQUEST['action'], array( 'woocommerce_get_refreshed_fragments', 'woocommerce_checkout', 'woocommerce_update_order_review', 'woocommerce_update_shipping_method', 'woocommerce_apply_coupon' ) ) ) ) {
if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && isset( $_REQUEST['action'] ) && in_array( $_REQUEST['action'], array( 'woocommerce_get_refreshed_fragments', 'woocommerce_checkout', 'woocommerce_update_order_review', 'woocommerce_update_shipping_method', 'woocommerce_apply_coupon' ) ) ) ) {
// HTTPS urls with SSL on
$filters = array(