WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/14/2009 01:57:48 PM (12 years ago)
Author:
ryan
Message:

Filter fields through kses upon display. Introduce sanitize_user_object() and sanitize_user_field(). see #10751

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r11554 r11929  
    386386</div>
    387387
    388 <?php
    389     foreach ( array('user_login' => 'user_login', 'first_name' => 'user_firstname', 'last_name' => 'user_lastname', 'email' => 'user_email', 'url' => 'user_uri', 'role' => 'user_role') as $formpost => $var ) {
    390         $var = 'new_' . $var;
    391         $$var = isset($_REQUEST[$formpost]) ? esc_attr(stripslashes($_REQUEST[$formpost])) : '';
    392     }
    393     unset($name);
    394 ?>
    395 
    396388<br class="clear" />
    397389<?php
Note: See TracChangeset for help on using the changeset viewer.