WordPress.org

Make WordPress Core

Ticket #22254: 22254.2.diff

File 22254.2.diff, 352 bytes (added by MikeHansenMe, 7 years ago)

updated patch to correct location

  • src/wp-login.php

     
    469469        exit();
    470470
    471471case 'logout' :
     472        if ( ! is_user_logged_in() ) {
     473                wp_redirect( wp_login_url() );
     474                exit();
     475        }
    472476        check_admin_referer('log-out');
    473477        wp_logout();
    474478