[wp-trac] [WordPress Trac] #9640: wp_update_user() blindly calls add_magic_quotes(), even on objects

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 17 09:25:57 UTC 2011


#9640: wp_update_user() blindly calls add_magic_quotes(), even on objects
------------------------------------------------+--------------------------
 Reporter:  misterbisson                        |       Owner:
     Type:  defect (bug)                        |      Status:  reopened
 Priority:  normal                              |   Milestone:  Future
Component:  Users                               |  Release
 Severity:  normal                              |     Version:  2.8
 Keywords:  has-patch 2nd-opinion dev-feedback  |  Resolution:
------------------------------------------------+--------------------------

Comment (by M66B):

 ''wp_update_user'' seems to call ''add_magic_quotes'' for all user meta
 values (maybe this is new behavior in a recent version of WordPress).
 According to the
 [http://codex.wordpress.org/Function_Reference/update_user_meta
 documentation] of ''update_user_meta'' "''Arrays and objects will be
 automatically serialized''".

 So, either this bug should be fixed or the documentation should be
 updated.

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


More information about the wp-trac mailing list