We run a Wordpress 4.0/Buddypress setup and ever since we switched to SSL all ajax functions are not working because the ajaxurl variable is still reading "http".
<script type="text/javascript">
/* <![CDATA[ */
var ajaxurl = 'http://website.com/wp-admin/admin-ajax.php';
/* ]]> */
</script>
This code is added to wp_head automatically so we're not really sure how to update it. We just need to switch http to https.
Does anyone know how we can do this?
We get this error each time ajax is required: [blocked] The page at 'https://website.com/users' was loaded over HTTPS, but ran insecure content from 'http://website.com/wp-admin/admin-ajax.php': this content should also be loaded over HTTPS.