Changeset 1746922
- Timestamp:
- 10/15/2017 07:20:23 PM (7 years ago)
- Location:
- wps-hide-login/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wps-hide-login/trunk/readme.txt
r1746911 r1746922 5 5 Requires at least: 4.1 6 6 Tested up to: 4.8 7 Stable tag: 1.2 7 Stable tag: 1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 65 65 == Changelog == 66 66 67 68 69 67 70 = 1.2 = 68 71 * Enhancement: Prevent redirection to login URL when accessing /wp-admin/customize.php directly -
wps-hide-login/trunk/wps-hide-login.php
r1746911 r1746922 6 6 Author: Remy Perona for WPServeur 7 7 Author URI: http://profiles.wordpress.org/tabrisrp/ 8 Version: 1.2 8 Version: 1.2 9 9 Text Domain: wps-hide-login 10 10 License: GPLv2 or later … … 364 364 $request = parse_url( $_SERVER['REQUEST_URI'] ); 365 365 366 if ( ( strpos( $_SERVER['REQUEST_URI'], 'wp-login.php' ) !== false366 if ( ( strpos( , 'wp-login.php' ) !== false 367 367 || untrailingslashit( $request['path'] ) === site_url( 'wp-login', 'relative' ) ) 368 368 && ! is_admin() ) { … … 428 428 429 429 wp_safe_redirect( $this->new_login_url() 430 431 430 . ( ! empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : '' ) ); 431 432 432 die; 433 433
Note: See TracChangeset
for help on using the changeset viewer.