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

WordPress Trac noreply at wordpress.org
Wed Sep 30 20:03:13 UTC 2020


#9640: wp_update_user() blindly calls add_magic_quotes(), even on objects
--------------------------+-------------------------
 Reporter:  misterbisson  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  2.8
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------
Changes (by desrosj):

 * keywords:  dev-feedback needs-refresh =>
 * status:  reopened => closed
 * resolution:   => worksforme


Comment:

 I am currently unable to reproduce this with the latest version of
 WordPress, so I am going to close this out. To test, I used the following
 code:

 {{{
 add_action( 'admin_init', function() {
         update_user_meta( 1, 'object_meta1', (object) array(
                 'some_property' => 'some_value',
         ) );

         update_user_meta( 1, 'object_meta2', new stdClass());

         wp_update_user( array(
                 'ID' => 1,
                 'user_email' => 'somenewemail at test.com',
         ) );
 });
 }}}

 It's possible that [48205]/[48440] or an earlier change resolved this. If
 someone is still able to reproduce, please reopen with specific steps
 someone can use to cause the issue. Bonus for a unit test or two that
 fails demonstrating the issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/9640#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list