• I’m using WordPress Access Control and the Theme My Login plugins on the same site. Theme My Login replaces the WordPress login page wp-login.php with a customised page /login/.

    If a non-member tries to access a members-only page, he is redirected to wp-login.php, not /login/. In wordpress-access-control.php (3.1.2) on line 937 there is a hard-coded reference to wp-login.php. If I change that line to read
    header( 'Location: ' . wp_login_url($_SERVER['REQUEST_URI']) );
    it redirects to /login/ correctly.
    Are there any undesirable side effects to this change? If not it looks like a desirable enhancement to me.

    http://wordpress.org/extend/plugins/wordpress-access-control/

Viewing 1 replies (of 1 total)
  • That would be the desired method. This is why WordPress has provided such functions. Not sure why some authors still insist on hardcoding values that have the possibility of being filtered.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Access Control] Non member access won't redirect to customised login page’ is closed to new replies.