[wp-trac] [WordPress Trac] #14855: WP_User misses values for some default properties (nickname, rich_editing)

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 13 07:39:11 UTC 2010


#14855: WP_User misses values for some default properties (nickname, rich_editing)
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.1            
 Severity:  normal        |    Keywords:  has-patch      
--------------------------+-------------------------------------------------

Comment(by hakre):

 Replying to [comment:3 nacin]:
 > For the default: http://core.trac.wordpress.org/browser/tags/3.0.1/wp-
 includes/registration.php#L166

 Updated to defaults, added {{{$user_login}}} because it contains the
 default value for the notice giving {{{$nickname}}} according to the code
 you linked.

 > Also, how were these users created? These should be created on
 registration.

 These users were created by inserting them into the database directly by
 providing only the required subset of user-metas to make WordPress them
 able to logon.

 So those users are directly loaded out of the DB, identified as being
 valid and are even run through the sanitization functions but still miss
 those values which are expected to be existing on user-edit.php giving
 notices there.

 It ''might'' make sense to add something in the sanitization as well, so
 to make {{{validate_username()}}} and {{{sanitize_user_object()}}} working
 together more closely.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14855#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list