Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/pluggable.php

    r5440 r5714  
    157157endif;
    158158
    159 if ( !function_exists('wp_mail') ) :
     159if ( !function_exists( 'wp_mail' ) ) :
    160160function wp_mail($to, $subject, $message, $headers = '') {
    161161    global $phpmailer;
     
    169169    $mail = compact('to', 'subject', 'message', 'headers');
    170170    $mail = apply_filters('wp_mail', $mail);
    171     extract($mail);
     171    extract($mail, EXTR_SKIP);
    172172
    173173    if ( $headers == '' ) {
     
    224224function wp_login($username, $password, $already_md5 = false) {
    225225    global $wpdb, $error;
     226
     227    $username = sanitize_user($username);
    226228
    227229    if ( '' == $username )
Note: See TracChangeset for help on using the changeset viewer.