Ready to get started?Download WordPress


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

  1. entr
    Posted 2 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

About this Topic