Duplicate Entry on custom field and preview
|Reported by:||hazuremon||Owned by:|
Users were complaining about custom field entry got duplicate after previewing. Found out the custom field value are prematurely updated to database without user clicking on "Add Custom Field" and "Publish".
To replicate the bug:
- New Post
- In custom field, select a name from drop down menu
- Enter a value for the custom field.
- Without publishing or adding the new custom field, press on "Preview".
- The typed custom field will be added to database and reflect in Preview.
- Close Preview window and press Preview button again will again post the custom field value as a separate instance, which cause the duplication.
- Custom field on dashboard did not reflect the duplicate entry until the page is refresh.
Same bug has been affecting all our sites on WP 3.3.0 and 3.3.1. Haven't test on version older than that. Also was test under "Admin" level and on all browsers and OS.