Theme My Login
Custom profiles restrict admin and 'wp_ajax_' in 6.2 (1 post)

  1. Zlatev
    Posted 3 years ago #

    Long waited update. Thanks a ton.

    I small issue I had with new version I think could be a bug is that when admin in restricted for a role 'wp_ajax_$action' is redirecting to profile for those users. Adding ! DOING_AJAX to conditions for that redirect fixed it. That would be line 41 ( themed-profiles.php ). I understand admin-ajax.php falls under the is_admin() hood and that's why it's behaving like that.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic