[Plugin: Sidebar Login] using FORCE_SSL_ADMIN and FORCE_SSL_LOGIN
-
I’m using Sidebar Login plugin (which works great, by the way). I set the FORCE_SSL_LOGIN variable according to the directions here:
https://codex.www.ads-software.com/Administration_Over_SSLand noticed that wp-login.php (WordPress’ built-in login) was using SSL, but the sidebar login plugin wasn’t. Here’s what I had to do to fix it:
In the wp_sidebarlogin_current_url function, right before the last line (return $pageURL:, line 389 in version 2.2.4), I added these 3 lines:
if ( force_ssl_login() || force_ssl_admin() ) { $pageURL = str_replace( 'https://', 'https://', get_option('siteurl') ); }
And that did the trick. Hopefully this can help someone else.
- The topic ‘[Plugin: Sidebar Login] using FORCE_SSL_ADMIN and FORCE_SSL_LOGIN’ is closed to new replies.