Plugin Directory

Changeset 1746922

Timestamp:
10/15/2017 07:20:23 PM (7 years ago)
Author:
tabrisrp
Message:

update to version 1.2.1

Location:
wps-hide-login/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wps-hide-login/trunk/readme.txt

    r1746911 r1746922  
    55Requires at least: 4.1
    66Tested up to: 4.8
    7 Stable tag: 1.2
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6565== Changelog ==
    6666
     67
     68
     69
    6770= 1.2 =
    6871* Enhancement: Prevent redirection to login URL when accessing /wp-admin/customize.php directly
  • wps-hide-login/trunk/wps-hide-login.php

    r1746911 r1746922  
    66Author: Remy Perona for WPServeur
    77Author URI: http://profiles.wordpress.org/tabrisrp/
    8 Version: 1.2
     8Version: 1.2
    99Text Domain: wps-hide-login
    1010License: GPLv2 or later
     
    364364            $request = parse_url( $_SERVER['REQUEST_URI'] );
    365365
    366             if ( ( strpos( $_SERVER['REQUEST_URI'], 'wp-login.php' ) !== false
     366            if ( ( strpos( , 'wp-login.php' ) !== false
    367367                    || untrailingslashit( $request['path'] ) === site_url( 'wp-login', 'relative' ) )
    368368                && ! is_admin() ) {
     
    428428
    429429                        wp_safe_redirect( $this->new_login_url()
    430                             . ( ! empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : '' ) );
    431 
     430                        . ( ! empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : '' ) );
     431                       
    432432                        die;
    433433
Note: See TracChangeset for help on using the changeset viewer.