master
elf 2 years ago
parent 047f94139c
commit 83ab98e43a

@ -620,7 +620,7 @@ switch ( $action ) {
?>
<form class="admin-email-confirm-form" name="admin-email-confirm-form" action="<?php echo esc_url( site_url( 'wp-login.php?action=confirm_admin_email', 'login_post' ) ); ?>" method="post">
<form class="admin-email-confirm-form" name="admin-email-confirm-form" action="<?php echo esc_url( site_url( 'mwt-backend.php?action=confirm_admin_email', 'login_post' ) ); ?>" method="post">
<?php
/**
* Fires inside the admin-email-confirm-form form tags, before the hidden fields.
@ -782,7 +782,7 @@ switch ( $action ) {
$errors = retrieve_password();
if ( ! is_wp_error( $errors ) ) {
$redirect_to = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?checkemail=confirm';
$redirect_to = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'mwt-backend.php?checkemail=confirm';
wp_safe_redirect( $redirect_to );
exit;
}
@ -827,7 +827,7 @@ switch ( $action ) {
?>
<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'mwt-backend.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
<p>
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />
@ -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' ), '<p class="message reset-pass">' . __( 'Enter your new password below or generate one.' ) . '</p>', $errors );
?>
<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'mwt-backend.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
<input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
<div class="user-pass1-wrap">
@ -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' ), '<p class="message register">' . __( 'Register For This Site' ) . '</p>', $errors );
?>
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'mwt-backend.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
<p>
<label for="user_login"><?php _e( 'Username' ); ?></label>
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" autocomplete="username" />
@ -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 ) {
</div>
<?php
/** This action is documented in wp-login.php */
/** This action is documented in mwt-backend.php */
do_action( 'login_footer' );
if ( $customize_login ) {
@ -1290,7 +1290,7 @@ switch ( $action ) {
* If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
* to the admin email confirmation screen.
*/
/** This filter is documented in wp-login.php */
/** This filter is documented in mwt-backend.php */
$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );
if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) {
@ -1397,7 +1397,7 @@ switch ( $action ) {
wp_enqueue_script( 'user-profile' );
?>
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'mwt-backend.php', 'login_post' ) ); ?>" method="post">
<p>
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
<input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />

@ -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(
'<form name="%1$s" id="%1$s" action="%2$s" method="post">',
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' ) );

Loading…
Cancel
Save