Update member login form for redirect.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 3 May 2018 12:08:12 +0000 (08:08 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 3 May 2018 12:08:12 +0000 (08:08 -0400)
Will redirect to the current page.

parts/glm-members-only-login-form.php
style.css

index 84e36ce..634696d 100644 (file)
@@ -38,6 +38,7 @@
     );
     $loginForm = wp_login_form($args);
     $captcha   = apply_filters('cptch_display', '', 'glm_login_form');
+    $captcha   .= '<input type="hidden" name="member_redirect" value="' . ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '">';
     $form      = str_replace( '<p class="login-remember">', $captcha . '<p class="login-remember">', $loginForm );
     echo $form;
     ?>
index 2cb4ecf..79692da 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: MiGCSA
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for MiGCSA
-Version: 1.0.5
+Version: 1.0.6
 */