Prejudice to what? (whitelist issue)
-
Hi everyone,
Let me start by saying this plugin has been really helpful to me. It is now a crucial part of how my site works.
I have a problem though. Notice the following code:
/** * Filter Force Login to allow exceptions for specific URLs. * * @return array An array of URLs. Must be absolute. */ function my_forcelogin_whitelist( $whitelist ) { $whitelist[] = site_url( '/member/' ); $whitelist[] = site_url( '/product/platinum-bundle/' ); $whitelist[] = site_url( '/one-to-one-lessons/' ); $whitelist[] = site_url( '/buy-weekly-lessons/' ); $whitelist[] = site_url( '/buy-by-weekly-lessons/' ); $whitelist[] = site_url( '/buy-packaged-lessons/' ); $whitelist[] = site_url( '/quizzes/audio_test_quiz/' ); $whitelist[] = site_url( '/babies/' ); return $whitelist; } add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
everything was working quite well, but now some of those pages are blocked and some are not.
The member page for example sends me to the login page.It doesn’t seem to be a caching issue as some new URLs can be added without this issue.
Any ideas? I’m going a bit crazy with this.
Thanks in advance,
Marlon
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Prejudice to what? (whitelist issue)’ is closed to new replies.