CRM-14089 - Fix ajax calls on frontend WP pages