WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
Administrators incorrectly being excluded (4 posts)

  1. David
    Member
    Posted 1 year ago #

    Hi,

    I have a series of sites in a WordPress network where users are invited to subscribe to posts based on a combination of posts for this particular site and to particular categories on each site. Then when an user within the admin publishes a new post those users who have subscribed will get a brief email about it.

    My problem came when an Administrator level user was subscribed to sites but wasn't receiving the emails. Yet local testing showed that he should.

    Eventually I discovered that when admin users who were Editors or Authors published a post he didn't get an email (yet others did), but when he made a post he did get an email.

    It turned out to be the 'pre_user_query' filter 'ure_exclude_administrators' which was modifying the get_users query to exclude Administrators, even though this query had nothing to do with URE.

    For the short term we've disabled the plugin so the filter isn't added, but is there any chance the plugin could be edited to only add the filters when it affects URE functions?

    Cheers

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for pointing on this issue.
    Fix for it was included already into URE 3.10, and beta is available already from this link
    http://shinephp.com/user-role-editor-version-3-10/
    It could be a good help if you test it.
    I plan to publish version 3.10 at February, 1st.

  3. David
    Member
    Posted 1 year ago #

    Hi there,

    Downloaded the beta and it's working great. No issues with the user filtering now.

    However I have noticed that when editing a single user, the new multiple roles functionality is including the bbPress roles among the WordPress roles. Trying to set a bbPress role this way doesn't work.

    Cheers

  4. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi David,

    Thanks for the information. I will check the issue with bbPress roles.

    Regards,
    Vladimir.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.