Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#39713 closed defect (bug) (fixed)

Customize: Changeset post_date does not bump when an auto-draft is updated

Reported by: westonruter's profile westonruter Owned by: westonruter's profile westonruter
Milestone: 4.7.3 Priority: normal
Severity: normal Version: 4.7
Component: Customize Keywords: has-patch has-unit-tests commit fixed-major
Focuses: Cc:

Description

By default the customizer will store the customized state in a customize_changeset post that gets an auto-draft status so that it will be garbage-collected after a week. In lieu of transitioning the changeset post to a draft status (#31089), the intention was that such changesets could be kept alive by simply making a modification every few days to keep their post_date bumped so that it doesn't get a week stale and so by deleted by wp_delete_auto_drafts(). This, however, is not working. Once an auto-draft changeset is created, its post date is not getting updated when updates are made to the post.

Change History (6)

#1 @westonruter
8 years ago

  • Keywords has-patch needs-testing has-unit-tests added
  • Owner set to westonruter
  • Status changed from new to accepted

#2 @westonruter
8 years ago

  • Summary changed from Customize: Changeset post_date does not clear when an auto-draft is updated to Customize: Changeset post_date does not bump when an auto-draft is updated

#3 @westonruter
8 years ago

  • Keywords commit added; needs-testing removed

#4 @westonruter
8 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 40041:

Customize: Extend auto-draft life of a customize_changeset post whenever modified.

Keep bumping the date for the auto-draft to preserve it from garbage-collection via wp_delete_auto_drafts() after 7 days.

See #30937.
Fixes #39713.

#5 @westonruter
8 years ago

  • Keywords fixed-major added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Re-opening for 4.7.3

#6 @dd32
8 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 40099:

Customize: Extend auto-draft life of a customize_changeset post whenever modified.

Keep bumping the date for the auto-draft to preserve it from garbage-collection via wp_delete_auto_drafts() after 7 days.

Props westonruter.
Merges [40041] to the 4.7 branch.
See #30937.
Fixes #39713.

Note: See TracTickets for help on using tickets.