Changeset 6902

Show
Ignore:
Timestamp:
02/18/08 20:16:02 (9 months ago)
Author:
ryan
Message:

Make user option name sanitization consistent. Props filosofo. fixes #5901

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/user.php

    r6726 r6902  
    8383    global $wpdb; 
    8484 
     85    $option = preg_replace('|[^a-z0-9_]|i', '', $option); 
    8586    if ( empty($user) ) 
    8687        $user = wp_get_current_user();