[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
Tue Oct 21 02:39:17 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.8      
Component:  Administration     |      Version:  2.6.1    
 Severity:  normal             |   Resolution:           
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Comment (by markedwards):

 Right about update_usermeta - sorry about that. It was late.

 Anyway, I found a workaround. I add a function to the class and now it
 works. But, really, WP should handle this check for plugin devs since some
 might not be able to find out how to work around it. Here's the new class
 that works without a WP fix:
 {{{
 !#php
 class myclass() {

     var $a;
     var $b;
     var $c;

     public function __toString() {
          return serialize($this);
     }
 }
 }}}

 That function works with no need to call it directly anywhere in the code
 - it's handled automagically by little green PHP goblins drinking beer in
 the remote recesses of the CPU - Lol

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


More information about the wp-trac mailing list