Opened 15 years ago
Closed 14 years ago
#16673 closed defect (bug) (fixed)
_wp_translate_data() shouldn't set fields to empty values
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.2 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (3)
Change History (11)
#5
@
15 years ago
Patch refreshed. scribu's wouldn't apply for me.
In 16673.2.diff, I also cast parent_id as integer.
@
14 years ago
Don't need to have hidden input any more as we not longer set post_parent to empty if it's not POSTed
Note: See
TracTickets for help on using
tickets.
+1