Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#49809 closed defect (bug) (invalid)

Add user meta is saving more values

Reported by: egyptimhotep's profile egyptimhotep Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords:
Focuses: Cc:


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.


Change History (3)

#1 @davidbaumwald
4 years ago

  • Component changed from General to Options, Meta APIs
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hello, @egyptimhotep! Trac is for reporting bugs in WordPress Core, and this is actually a support issue. That being said, try using instead.

If you have any further issues, try asking over at the support forums

#2 @knutsp
4 years ago

Hello @egyptimhotep

This is the expected behaviour. You may either supply en extra parameter $unique and set it to true, or use ´update_user_meta()´. Documented here and

#3 @egyptimhotep
4 years ago

Guys, I am very sorry. My bad.
Thank you for support.

Version 0, edited 4 years ago by egyptimhotep (next)
Note: See TracTickets for help on using tickets.