[wp-trac] [WordPress Trac] #11509: sanitize_user_object() throws fatal error on user property objects

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 19 18:26:14 UTC 2009


#11509: sanitize_user_object() throws fatal error on user property objects
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  ryan                          
     Type:  defect (bug)  |      Status:  new                           
 Priority:  normal        |   Milestone:  2.9.1                         
Component:  Users         |     Version:  2.9                           
 Severity:  normal        |    Keywords:  sanitize_user_object has-patch
--------------------------+-------------------------------------------------

Comment(by hakre):

 Replying to [ticket:11509 filosofo]:
 > You're probably thinking, "if checking for objects is the problem, why
 not just call {{{is_object()}}}?"  The problem is that if the serialized
 object is of an object type that is no longer defined, {{{is_object()}}}
 returns false.

 is_object() does not unserialize a value. it will return false. it will
 only return true on real (not serialized) objects.

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


More information about the wp-trac mailing list