Make WordPress Core

Ticket #54685: WP54685.diff

File WP54685.diff, 964 bytes (added by golenkovm, 3 years ago)

Patch for the ticket

  • wp-login.php

    diff --git a/wp-login.php b/wp-login.php
    index 11517dac..51930bf7 100644
    a b switch ( $action ) { 
    554554
    555555                ?>
    556556
    557                 <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">
     557                <form class="admin-email-confirm-form" name="admin-email-confirm-form" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    558558                        <?php
    559559                        /**
    560560                         * Fires inside the admin-email-confirm-form form tags, before the hidden fields.
    switch ( $action ) { 
    567567
    568568                        ?>
    569569                        <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
     570                        <input type="hidden" name="action" value="<?php echo esc_attr( 'confirm_admin_email' ); ?>" />
    570571
    571572                        <h1 class="admin-email__heading">
    572573                                <?php _e( 'Administration email verification' ); ?>