01-15-2017, 03:56 PM
Is that not why the following is included in securePage():
so it allows access for public but then if it the page is set to private then it runs the rest of the checks for permissions.
In that case it is probably best for the snippet to sit in header.php, at least for myself anyway.
I suppose if people have implemented their own fixes in the init file as well then it would be telling them to fix something that has already been fixed. I can understand how difficult it can be to maintain compatibility, I think a lot of people appreciate your hard efforts.
Code:
}elseif ($pageDetails['private'] == 0){//If page is public, allow access
Code:
return true;
so it allows access for public but then if it the page is set to private then it runs the rest of the checks for permissions.
In that case it is probably best for the snippet to sit in header.php, at least for myself anyway.
I suppose if people have implemented their own fixes in the init file as well then it would be telling them to fix something that has already been fixed. I can understand how difficult it can be to maintain compatibility, I think a lot of people appreciate your hard efforts.