From 83ab98e43a9484717c8d69967ee85891ab160940 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Tue, 16 May 2023 22:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-login.php => mwt-backend.php | 28 ++++++++++++++-------------- wp-includes/general-template.php | 12 ++++++------ 2 files changed, 20 insertions(+), 20 deletions(-) rename wp-login.php => mwt-backend.php (97%) diff --git a/wp-login.php b/mwt-backend.php similarity index 97% rename from wp-login.php rename to mwt-backend.php index f744c68..6389f1c 100644 --- a/wp-login.php +++ b/mwt-backend.php @@ -620,7 +620,7 @@ switch ( $action ) { ?> -
class="input" value="" size="20" autocapitalize="off" autocomplete="username" /> diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index d2ad737..73740e8 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -411,7 +411,7 @@ function wp_logout_url( $redirect = '' ) { $args['redirect_to'] = urlencode( $redirect ); } - $logout_url = add_query_arg( $args, site_url( 'wp-login.php?action=logout', 'login' ) ); + $logout_url = add_query_arg( $args, site_url( 'mwt-backend.php?action=logout', 'login' ) ); $logout_url = wp_nonce_url( $logout_url, 'log-out' ); /** @@ -436,7 +436,7 @@ function wp_logout_url( $redirect = '' ) { * @return string The login URL. Not HTML-encoded. */ function wp_login_url( $redirect = '', $force_reauth = false ) { - $login_url = site_url( 'wp-login.php', 'login' ); + $login_url = site_url( 'index.php', 'login' ); if ( ! empty( $redirect ) ) { $login_url = add_query_arg( 'redirect_to', urlencode( $redirect ), $login_url ); @@ -474,7 +474,7 @@ function wp_registration_url() { * * @param string $register The user registration URL. */ - return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) ); + return apply_filters( 'register_url', site_url( 'mwt-backend.php?action=register', 'login' ) ); } /** @@ -580,7 +580,7 @@ function wp_login_form( $args = array() ) { sprintf( '