wp_bouncer_redirect_url is not set up right
-
Hello,
You apply the wp_bouncer_redirect_url filter in your construct. Since plugins load before the theme function it will never be a valid filter to apply.
To fix this you can change line 56, which reads:
$this->redirect = apply_filters(‘wp_bouncer_redirect_url’, esc_url_raw( plugin_dir_url( __FILE__ ) . ‘login-warning.php’ ));
to:
$this->redirect = esc_url_raw( plugin_dir_url( __FILE__ ) . ‘login-warning.php’ );
and line 161, which reads:
wp_redirect( $this->redirect );
to:
wp_redirect( apply_filters(‘wp_bouncer_redirect_url’,$this->redirect) );
This will apply the filter only when the redirect needs to be called.
For the time being I’ve directly modified the plugin, but it would be excellent if we could get the live one to properly apply the filters.
Thanks!
- The topic ‘wp_bouncer_redirect_url is not set up right’ is closed to new replies.