Change WordPress user roles and capabilities › Forums › Bug Reports › User Access restrict to return 404 error › Reply To: User Access restrict to return 404 error
09/04/2017 at 02:59
#3545
Vladimir
Keymaster
Hi Giacomo,
A quick fix to the issue with access error action HTTP 404 default value for a new added post is to replace line #166 at pro/includes/classes/content-view-restrictions.php from
$content_view_access_error_action = apply_filters('ure_default_post_access_error_action', 2);
to
$content_view_access_error_action = apply_filters('ure_default_post_access_error_action', $content_view_access_error_action);
I included this fix into upcoming update v. 4.33.1, which I plan to publish in a week.