Don't redirect on admin-ajax.php
-
On line 1191 of admin_init, currently the code checks if the sites base_url is used, this however breaks the frontend functionality of admin-ajax.php (used in Transposh), so I ended up adding a
!stristr($_SERVER['REQUEST_URI'], 'admin-ajax.php')
to make sure ajax requests are never redirected (since they can be used from the frontend and not just admin pages)
- The topic ‘Don't redirect on admin-ajax.php’ is closed to new replies.