WordPress.org

Plugin Directory

Changeset 1645267


Ignore:
Timestamp:
04/25/17 21:32:47 (5 weeks ago)
Author:
bradmkjr
Message:

updated to resolve issues with wp-login.php

Location:
wp-front-end-login/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-front-end-login/trunk/README.md

    r1643431 r1645267  
    55**Requires at least:** 4.7.3   
    66**Tested up to:** 4.7.4   
    7 **Stable tag:** 1.3.0   
     7**Stable tag:** 1.4.1   
    88**License:** GPLv2   
    99**License URI:** http://www.gnu.org/licenses/gpl-2.0.html   
     
    5454 
    5555### 1. This screenshot shows the standard login form on the front end of a WordPress website. 
    56 [missing image] 
     56![This screenshot shows the standard login form on the front end of a WordPress website.](https://ps.w.org/wp-front-end-login/assets/screenshot-1.png) 
    5757 
    5858### 2. This screenshot shows the lost password box on the front end of a WordPress site. 
    59 [missing image] 
     59![This screenshot shows the lost password box on the front end of a WordPress site.](https://ps.w.org/wp-front-end-login/assets/screenshot-2.png) 
    6060 
    6161 
    6262 
    6363## Changelog  
     64 
     65 
     66### 1.4.1  
     67* Updated code to not load on wp-login.php page 
     68 
     69 
     70### 1.3.2  
     71* Tagged version for WordPress Plugin Directory 
    6472 
    6573 
  • wp-front-end-login/trunk/readme.txt

    r1643429 r1645267  
    55Requires at least: 4.7.3 
    66Tested up to: 4.7.4 
    7 Stable tag: 1.3.2 
     7Stable tag: 1.4.1 
    88License: GPLv2 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5151== Changelog == 
    5252 
     53= 1.4.1 = 
     54* Updated code to not load on wp-login.php page 
     55 
    5356= 1.3.2 = 
    5457* Tagged version for WordPress Plugin Directory 
    55  
    5658 
    5759= 1.3.1 = 
  • wp-front-end-login/trunk/wp-front-end-login.php

    r1643429 r1645267  
    44Plugin URI: https://github.com/bradmkjr/wp-front-end-login 
    55Description: Does some stuff to make front end login work. 
    6 Version: 1.3.2 
     6Version: 1.4.1 
    77Author: Bradford Knowlton 
    88Author URI: http://bradknowlton.com 
     
    968968         
    969969            global $key, $user_login; 
     970             
     971            if( strpos( $_SERVER['REQUEST_URI'], '/wp-login.php') === 0 ){ 
     972                return $url; 
     973            } 
    970974             
    971975            if( 'wp-login.php' == $path ){ 
     
    11201124         
    11211125        public function login_redirect( $redirect_to, $requested_redirect_to, $user ){ 
    1122              
     1126         
    11231127            $redirect_to = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 
    11241128                
     
    11591163    } 
    11601164      
     1165     
     1166    if( strpos( $_SERVER['REQUEST_URI'], '/wp-login.php') !== 0 ){  
     1167      
    11611168    $wpFrontEndLogin = new WPFrontEndLogin(); 
    11621169     
     1170    } 
    11631171} 
    11641172 
    11651173 
    11661174// Need to add function 
    1167 if( ! function_exists( 'wp_shake_js' )){ 
     1175if( ! function_exists( 'wp_shake_js' ) && strpos( $_SERVER['REQUEST_URI'], '/wp-login.php') !== 0 ){ 
    11681176     
    11691177    /** 
     
    11851193} 
    11861194 
    1187 if( ! function_exists( 'wp_login_viewport_meta' )){ 
     1195if( ! function_exists( 'wp_login_viewport_meta' ) && strpos( $_SERVER['REQUEST_URI'], '/wp-login.php') !== 0 ){ 
    11881196 
    11891197    /** 
     
    12001208 
    12011209 
    1202 if( ! function_exists( 'retrieve_password' )){ 
     1210if( ! function_exists( 'retrieve_password' ) && strpos( $_SERVER['REQUEST_URI'], '/wp-login.php') !== 0 ){ 
    12031211     
    12041212    /** 
Note: See TracChangeset for help on using the changeset viewer.