Theme redirects ajax requests for users that are not logged in
-
Hi, I am wondering if anyone knows how a theme might be able to interfere with ajax requests.
I have a plugin which works fine in any other theme (including Directorypress 6.3.2) but I recently installed classifiedstheme 7.0.2 on a new wordpress 3.3.1 install and the plugin now does not work for users who are not logged in.
The plugin has two ajax actions:
add_action( 'wp_ajax_em_ajax_getEvents', 'em_ajax_getEvents' ); // ajax for logged in users add_action( 'wp_ajax_nopriv_em_ajax_getEvents', 'em_ajax_getEvents' ); // ajax for not logged in users
When a user is not logged in they see the following:
POST http://<server>/wp-admin/admin-ajax.php 302 Moved Temporarily 999ms GET http://<server>/ 200 OK 441ms
But of course they receive no information because the root certainly has no idea how to deal with that request. Any ideas how classifiedstheme might be causing that ajax call to redirect?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Theme redirects ajax requests for users that are not logged in’ is closed to new replies.