#41396 closed defect (bug) (fixed)
set_post_format: inconsistency between edit_post and bulk_edit_posts
| Reported by: | Chouby | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Post Formats | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
In edit_post(), set_post_format() is called before the post is saved. In bulk_edit_posts(), it is called after.
This can cause trouble to the plugins expecting to have the right post format, when hooking to the action save_post.
Attachments (2)
Change History (8)
#3
@
9 years ago
- Keywords commit added
Simply moving set_post_format() call above wp_update_post() is not enough, as wp_insert_post() then overwrites the format with the old data from $post_data['tax_input']['post_format'].
41396.2.diff adds unset( $post_data['tax_input']['post_format'] ) and a unit test.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [18722].