Bug Fix #0000019
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 29 Jun 2016 18:20:17 +0000 (14:20 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 29 Jun 2016 18:20:17 +0000 (14:20 -0400)
This fixes bug #0000019
Members logging in would go straight to the admin side.
Updating the option used for the login form to the one being check on
the redirect filter.

glm-members-only-template.php
style.css

index 44acca8..bc115cf 100644 (file)
@@ -19,7 +19,7 @@ get_header(); ?>
                     <div class='glm-member-greeting'>Hello,     <?php $current_user = wp_get_current_user();echo $current_user->user_login ?>.</div>
                     <a class='button glm-button' href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a>
                     <?php if (current_user_can("glm_members_member")) { ?>
-                        <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Enter Member Admin Area</a>                        
+                        <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Enter Member Admin Area</a>
                     <?php } ?>
                 </div>
                 <?php if (is_in_tree(get_option("glm_member_db_option_member_detail_id"))) {}?>
@@ -34,18 +34,18 @@ get_header(); ?>
                     <p id="glm-member-login-notification">
                     <?php if( isset( $_GET['login'] ) && $_GET['login'] == 'failed' ) { ?>
                         The information you entered is incorrect, Please try again.
-                    <?php } 
+                    <?php }
                     else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
                         Please enter both username and password.
                     <?php } else { ?>
                         Please log in to gain access to this page
                     <?php } ?>
                     </p>
-                </div> 
+                </div>
                 <div id='glm-member-login-form'>
-                    <?php 
-                        update_option('glm_member_db_frontend_login_request', 'true');
-                        wp_login_form(1, get_permalink()); 
+                    <?php
+                        update_option('glm_members_database_frontend_login_request', 'true');
+                        wp_login_form(1, get_permalink());
                         ?>
                 </div>
             <?php } ?>
index 5d9700f..dc304b9 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: ThinkDunes
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for ThinkDunes
-Version: 1.0.14
+Version: 1.0.15
 */