[wp-trac] [WordPress Trac] #49809: Add user meta is saving more values

WordPress Trac noreply at wordpress.org
Sat Apr 4 17:30:02 UTC 2020


#49809: Add user meta is saving more values
--------------------------+-----------------------------
 Reporter:  egyptimhotep  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 On single.php place this function and open single post, meta is working
 fine, "fero" is saved one time. Then open another blog post, you will see
 that now it save two times same value "fero".

 I believe it should save only one value to array.

 {{{#!php
 <?php
 add_user_meta(get_current_user_id(),'video_history',"fero");
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49809>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list