[wp-trac] [WordPress Trac] #19907: Updating an unpublished draft post in quick-edit mode sets the post's publish date

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 27 17:33:36 UTC 2012


#19907: Updating an unpublished draft post in quick-edit mode sets the post's
publish date
-----------------------------------+------------------
 Reporter:  uxtremist              |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  3.4
Component:  Quick/Bulk Edit        |     Version:  2.7
 Severity:  major                  |  Resolution:
 Keywords:  ux-feedback has-patch  |
-----------------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch ux-feedback => ux-feedback has-patch
 * version:  3.3.1 => 2.7


Comment:

 Has been this way since Quick Edit was introduced in 2.7 (#8144).

 The problem is that `edit_date` is true by default:[[BR]]
 http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/js/inline-edit-
 post.dev.js#L238 [[BR]]
 And the condition for `$clear_date` in `wp_update_post()` is not
 satisfied:[[BR]]
 http://core.trac.wordpress.org/browser/tags/3.3.1/wp-
 includes/post.php#L2693

 [attachment:19907.patch] brings the similar check and comment into
 `edit_post()`.

 [attachment:19907.2.patch] sets `edit_date` to false instead of
 `post_date_gmt`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19907#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list