Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added check for Jigoshop admin-ajax.php call.

  • Loading branch information...
commit 25d59634007b4f4df83b5fb8972f50bebe555296 1 parent 9cbfa1c
@mvied authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/WordPressHTTPS/Module/Ecommerce.php
View
2  lib/WordPressHTTPS/Module/Ecommerce.php
@@ -71,7 +71,7 @@ public function secure_woocommerce( $force_ssl, $post_id = 0, $url = '' ) {
*/
public function secure_jigoshop( $force_ssl, $post_id = 0, $url = '' ) {
if ( !is_admin() && $post_id > 0 ) {
- if ( get_option('jigoshop_force_ssl_checkout') === 'yes' && $post_id == get_option('jigoshop_checkout_page_id') ) {
+ if ( get_option('jigoshop_force_ssl_checkout') === 'yes' && ( $post_id == get_option('jigoshop_checkout_page_id') || strpos($url, 'admin-ajax.php?action=jigoshop-checkout') !== false ) ) {
$force_ssl = true;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.