[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 Apr 20 18:08:19 GMT 2009


#7928: WP fails if object data is stored in the usermeta table
-------------------------------------------+--------------------------------
 Reporter:  markedwards                    |        Owner:  anonymous
     Type:  defect (bug)                   |       Status:  closed   
 Priority:  high                           |    Milestone:           
Component:  Administration                 |      Version:  2.6.1    
 Severity:  normal                         |   Resolution:  invalid  
 Keywords:  reporter-feedback needs-patch  |  
-------------------------------------------+--------------------------------
Changes (by Denis-de-Bernardy):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.8 =>


Comment:

 storing objects in those tables (options, post meta, or user meta) is not
 safe no matter what.

 the objects do not get initialized when recreated, and there are all sorts
 of problems related to them getting stored. __sleep() and __wakeup() are
 additionally not supported in php4.

 please use the relevant php5 functions in your class, and mark it as
 requiring php 5, or whatever the version it was that they were introduced
 in.

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


More information about the wp-trac mailing list