Make WordPress Core

Changeset 3985 for trunk/wp-login.php


Ignore:
Timestamp:
07/05/2006 10:00:03 PM (20 years ago)
Author:
ryan
Message:

Use wp_die(). Props filosofo. fixes #2914

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r3972 r3985  
    9999
    100100        if (!$user_email || $user_email != $_POST['email'])
    101                 die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
     101                wp_die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
    102102
    103103do_action('retreive_password', $user_login);  // Misspelled and deprecated.
    … …  
    133133        $key = preg_replace('/a-z0-9/i', '', $_GET['key']);
    134134        if ( empty($key) )
    135                 die( __('Sorry, that key does not appear to be valid.') );
     135                wp_die( __('Sorry, that key does not appear to be valid.') );
    136136        $user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE user_activation_key = '$key'");
    137137        if ( !$user )
    138                 die( __('Sorry, that key does not appear to be valid.') );
     138                wp_die( __('Sorry, that key does not appear to be valid.') );
    139139
    140140        do_action('password_reset');
Note: See TracChangeset for help on using the changeset viewer.