[wp-trac] [WordPress Trac] #7623: get_post_meta fails to unserialize when $single=false

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 28 07:18:32 GMT 2008


#7623: get_post_meta fails to unserialize when $single=false
---------------------+------------------------------------------------------
 Reporter:  andy     |       Owner:  ryan     
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.6.2    
Component:  General  |     Version:  2.6.1    
 Severity:  normal   |    Keywords:  has-patch
---------------------+------------------------------------------------------
 When $single=false the return should be an array. maybe_unserialize is
 being applied to the array of rows so it doesn't do anything. It should be
 applied to each member of that array. Patch uses array_map and removes
 redundant logic.

 If any plugin code is compensating by running maybe_unserialize on the
 array members, it will not be affected. If it uses unserialize, which is
 inadvisable anyway, it will break.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7623>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list