[wp-trac] [WordPress Trac] #10632: update_usermeta should allow blank values

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 16 21:06:54 UTC 2009


#10632: update_usermeta should allow blank values
--------------------------+-------------------------------------------------
 Reporter:  jfarthing84   |       Owner:  jfarthing84
     Type:  defect (bug)  |      Status:  accepted   
 Priority:  normal        |   Milestone:  Unassigned 
Component:  General       |     Version:  2.8.4      
 Severity:  normal        |    Keywords:  2nd-opinion
--------------------------+-------------------------------------------------

Comment(by jfarthing84):

 Sorry, I didn't realize on the first attachment that my code editor had
 converted the tabs from 6 spaces to 4, so it DIFFed the whole file. I
 uploaded the correct version. Instead of checking the meta value with the
 empty() function, just check for an empty string, that way the user meta
 value can be set to 0 if need be.

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


More information about the wp-trac mailing list