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 ) { ?> -
+ - +

@@ -897,9 +897,9 @@ switch ( $action ) { setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); if ( $user && $user->get_error_code() === 'expired_key' ) { - wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=expiredkey' ) ); + wp_redirect( site_url( 'mwt-backend.php?action=lostpassword&error=expiredkey' ) ); } else { - wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=invalidkey' ) ); + wp_redirect( site_url( 'mwt-backend.php?action=lostpassword&error=invalidkey' ) ); } exit; @@ -945,7 +945,7 @@ switch ( $action ) { login_header( __( 'Reset Password' ), '

' . __( 'Enter your new password below or generate one.' ) . '

', $errors ); ?> - +
@@ -1028,7 +1028,7 @@ switch ( $action ) { } if ( ! get_option( 'users_can_register' ) ) { - wp_redirect( site_url( 'wp-login.php?registration=disabled' ) ); + wp_redirect( site_url( 'mwt-backend.php?registration=disabled' ) ); exit; } @@ -1047,7 +1047,7 @@ switch ( $action ) { $errors = register_new_user( $user_login, $user_email ); if ( ! is_wp_error( $errors ) ) { - $redirect_to = ! empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered'; + $redirect_to = ! empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'mwt-backend.php?checkemail=registered'; wp_safe_redirect( $redirect_to ); exit; } @@ -1070,7 +1070,7 @@ switch ( $action ) { login_header( __( 'Registration Form' ), '

' . __( 'Register For This Site' ) . '

', $errors ); ?> - +

@@ -1135,7 +1135,7 @@ switch ( $action ) { ); } - /** This action is documented in wp-login.php */ + /** This action is documented in mwt-backend.php */ $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); login_header( __( 'Check your email' ), '', $errors ); @@ -1165,7 +1165,7 @@ switch ( $action ) { * Using this you can assume the user has agreed to perform the action by * clicking on the link in the confirmation email. * - * After firing this action hook the page will redirect to wp-login a callback + * After firing this action hook the page will redirect to mwt-backend a callback * redirects or exits first. * * @since 4.9.6 @@ -1266,7 +1266,7 @@ switch ( $action ) {

0 && time() > $admin_email_lifespan ) { @@ -1397,7 +1397,7 @@ switch ( $action ) { wp_enqueue_script( 'user-profile' ); ?> - +

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( '', esc_attr( $args['form_id'] ), - esc_url( site_url( 'wp-login.php', 'login_post' ) ) + esc_url( site_url( 'mwt-backend.php', 'login_post' ) ) ) . $login_form_top . sprintf( @@ -647,9 +647,9 @@ function wp_lostpassword_url( $redirect = '' ) { if ( is_multisite() ) { $blog_details = get_blog_details(); - $wp_login_path = $blog_details->path . 'wp-login.php'; + $wp_login_path = $blog_details->path . 'mwt-backend.php'; } else { - $wp_login_path = 'wp-login.php'; + $wp_login_path = 'mwt-backend.php'; } $lostpassword_url = add_query_arg( $args, network_site_url( $wp_login_path, 'login' ) );