Permalink
Browse files

Added check for Jigoshop admin-ajax.php call.

  • Loading branch information...
1 parent 9cbfa1c commit 25d59634007b4f4df83b5fb8972f50bebe555296 @mvied committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}
}

0 comments on commit 25d5963

Please sign in to comment.