Make WordPress Core

Ticket #53348: 53348.diff

File 53348.diff, 645 bytes (added by henry.wright, 4 years ago)
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index 11517da..b4025ec 100644
    if ( isset( $_GET['key'] ) ) { 
    371371        $action = 'resetpass';
    372372}
    373373
    374 if ( isset( $_GET['checkemail'] ) ) {
     374// checkemail=confirm and checkemail=registered are valid
     375if ( isset( $_GET['checkemail'] ) && ( 'confirm' === $_GET['checkemail'] || 'registered' === $_GET['checkemail'] ) ) {
    375376        $action = 'checkemail';
    376377}
    377378
     379// action=checkemail isn't used
     380if ( isset( $_GET['action'] ) && 'checkemail' === $_GET['action'] ) {
     381        $action = 'login';
     382}
     383
    378384$default_actions = array(
    379385        'confirm_admin_email',
    380386        'postpass',