removing glm_login functions from functions.php
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 2 Feb 2017 13:57:35 +0000 (08:57 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 2 Feb 2017 13:57:35 +0000 (08:57 -0500)
functions.php

index 98a346a..b4fd8fa 100644 (file)
@@ -230,42 +230,4 @@ if (!function_exists('is_in_tree')) {
         return false;
     }
 }
-
-/**
- * Function Name:   front_end_login_fail.
- * Added for:       GLM Member DB front-end login failure custom redirection.
- * Description:     This redirects the failed login to the custom login page
- *                  instead of default login page with a modified url
-**/
-add_action( 'wp_login_failed', 'front_end_login_fail' );
-function front_end_login_fail( $username ) {
-    // Getting URL of the login page
-    $referrer = $_SERVER['HTTP_REFERER'];
-    // if there's a valid referrer, and it's not the default log-in screen
-    if( !empty( $referrer ) && !strstr( $referrer,'wp-login' ) && !strstr( $referrer,'wp-admin' ) ) {
-        wp_redirect( get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=failed" );
-        exit;
-    }
-}
-
-/**
- * Function Name:   front_end_blank_credentials.
- * Added for:       GLM Member DB front-end login failure custom redirection.
- * Description:     This redirects to the custom login page if user name or
- *                  password is empty with a modified url
-**/
-add_action( 'authenticate', 'front_end_blank_credentials', 1, 3);
-function front_end_blank_credentials( $login, $username, $password ) {
-
-    // Getting URL of the login page
-    $referrer = $_SERVER['HTTP_REFERER'];
-    // if there's a valid referrer, and it's not the default log-in screen
-    if( !empty( $referrer ) && !strstr( $referrer,'wp-login' ) && !strstr( $referrer,'wp-admin' ) ) {
-        if( $username == "" || $password == "" ){
-            wp_redirect( get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=empty" );
-            exit;
-        }
-    }
-}
-
-?>
+?>
\ No newline at end of file