_wp_translate_data() shouldn't set fields to empty values
|Reported by:||scribu||Owned by:||scribu|
In _wp_translate_data(), there are 3 fields which are always set, regardless if their $_POST key wasn't set originally.
This prevents the array_merge() in wp_update_post() from working properly.
Example: If a custom post type doesn't support excerpts, they will be overwritten if you set them through another method.
In #13179, this was resolved by adding hidden inputs, which is kind of backwards.
Change History (11)
4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened