[wp-trac] Re: [WordPress Trac] #7928: WP fails if object data is stored in the usermeta table

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 20 16:41:34 GMT 2008


#7928: WP fails if object data is stored in the usermeta table
-------------------------------+--------------------------------------------
 Reporter:  markedwards        |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  high               |    Milestone:  2.7      
Component:  Administration     |      Version:  2.6.1    
 Severity:  normal             |   Resolution:           
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Changes (by jacobsantos):

  * keywords:  profiles, users, edit, => reporter-feedback

Comment:

 This is incorrect:

 {{{
 function so_update_usermeta() {

     $d = get_usermeta(1,'so_user_data');

     if (!$d)
         $d = new myclass();
         $d->a = 1;
         $d->b = 1;
         $d->c = 1;

         update_usermeta(1, $d);

 }
 }}}

 {{{update_usermeta(1, $d);}}} should be {{{update_usermeta(1,
 'so_user_data', $d);}}}.

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


More information about the wp-trac mailing list