[wp-trac] [WordPress Trac] #42457: Scheduled changeset won't publish if Customizer is opened first after missing schedule

WordPress Trac noreply at wordpress.org
Tue Nov 7 15:22:29 UTC 2017

#42457: Scheduled changeset won't publish if Customizer is opened first after
missing schedule
 Reporter:  LittleBigThing  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Customize       |    Version:  4.9
 Severity:  normal          |   Keywords:
  Focuses:                  |
 There seems to be a bug with publishing scheduled changes for some
 Customizer settings if the '''Customizer is opened first after missing the
 scheduled date'''.

 If I understand correctly from the blog post introducing the changes in WP
 4.9, by default, scheduled changesets are autoloaded when the Customizer
 is loaded (/wp-admin/customize.php). This works correctly. However, when
 the site has not been visited after the scheduled date is passed and the
 Customizer is then loaded, the message appears that "Your scheduled
 changes just published". If then I click through to the Customizer or
 visit the site the changes are not present for some Customizer settings.
 This was the case for the site title, description, (text) widgets and the
 home page setting (blog or page).
 However, it seemed to work correctly for changes for the menus, colors and
 the header image. Sorry for not testing "everything".

 When I looked in the posts table in the database, the changes seemed
 properly cued as a future changeset before opening the Customizer
 (post_status = 'future'). After opening the Customizer, the changeset had
 status 'trash'. (Note that I am not aware of the correct structure for the
 post_content of changesets.)

 To reproduce:
 - go to the Customizer
 - change a setting (e.g. site title)
 - schedule the change for a (near) future date (just a couple of minutes)
 - close the Customizer
 - let scheduled time pass
 - open the Customizer (you'll receive the message that scheduled changes
 are published)
 - go further to the Customizer or check the site directly for the changes

 I tested locally with WP 4.9-RC2 using the themes Twenty Fifteen, Sixteen
 en Seventeen as administrator.

 Sorry if I'm missing something and this is no bug...

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

More information about the wp-trac mailing list