If “Only accessible by members?” selected with a “Only Accessible By” role without “Administrator” checked, the Pages/Posts listing will redirect to the root URL.
This happens because the WordPress Access Control Plugin hooks to the ‘wp’ action and validates all of the Pages/Posts returned against their permission settings. If an entry has an “Only Accessible By” setting, that doesn’t include the Administrator, you will be subject to the same behavior as other unqualified users.
I could be wrong. First day using WordPress beyond theming. It seems as though a simple solution would be to set the Administrator option to disabled:
<input disabled="disabled" checked="checked" type="checkbox" value="administrator" name="wpac_restricted_to">
Another option which I won’t have time to investigate, might be to hook to another action not used on the the administration side of the site. Instead of:
add_action( 'wp', array( 'WordPressAccessControl', 'check_for_members_only' ) ); add_action( 'wp', array( 'WordPressAccessControl', 'check_for_nonmembers_only' ) );
Great plugin otherwise. Does exactly what the user would expect.
- The topic ‘[Plugin: WordPress Access Control] Admin pages redirecting when "Only accessible by members?&qu’ is closed to new replies.