[wp-trac] [WordPress Trac] #42413: Customize: Export the current changeset's date if it's in the future

WordPress Trac noreply at wordpress.org
Thu Nov 2 03:49:15 UTC 2017


#42413: Customize: Export the current changeset's date if it's in the future
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 There seems to be a slight difference in behavior between the Publish
 Settings in the Customizer and the edit-post screen in this scenario:

 1. Schedule a changeset.

 2. Switch the changeset to a draft and save again.

 3. Exit the Customizer and open it again later such that the changeset
 draft is loaded.

 If you go back to the Publish Settings and select "Schedule," the date
 shown will be the current date and time, not the actual date of the
 changeset post in the database (which is the date for which the changeset
 was previously scheduled). By contrast, the edit-post screen will show the
 database date.

 `WP_Customize_Manager::customize_pane_settings()` will currently export
 the date of the changeset post if its status is `future`. The attached
 patch would instead check that the changeset post's date is in the future,
 regardless of post status. (Exporting a date in the past doesn't seem to
 make sense because scheduling a changeset with a past date is blocked, not
 published immediately.)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42413>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list