05/08/2014 at 11:37 am
#290624
Keymaster
@ Mario
Thanks for reporting this with a solution!
Quick question, can you try this solution?
Comment out this line, like you’ve done:
$protocol = isset( $_SERVER['HTTPS'] ) ? 'https://' : 'http://';
So it becomes:
//$protocol = isset( $_SERVER['HTTPS'] ) ? 'https://' : 'http://';
Now, change this line from:
'ajaxurl' => admin_url( 'admin-ajax.php', $protocol ),
To this:
'ajaxurl' => admin_url( 'admin-ajax.php', ( is_ssl() ? 'https' : 'http' ) ),
That should do it so you do not have to do the string replace. Let me know. And thanks again!