[wp-trac] [WordPress Trac] #47576: Duplicate Custom Fields are created in new post

WordPress Trac noreply at wordpress.org
Thu Jun 20 13:55:53 UTC 2019


#47576: Duplicate Custom Fields are created in new post
--------------------------------+------------------------------
 Reporter:  mhalamine           |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  5.2.2
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:
--------------------------------+------------------------------

Comment (by mhalamine):

 You are right about using the key twice but the issue is not here, the
 issue is that i created only one field but after i saved i got 2 identical
 entries for the same key.

 Try the following:
 Create a New Post
 Add a custom field "custom_field_1" with a value "custom_field_value_1"
 Save Draft or Publish
 ...you will now see the "custom_field_1" field repeated twice (both with a
 value of "custom_field_value_1")

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


More information about the wp-trac mailing list