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

WordPress Trac noreply at wordpress.org
Thu Nov 9 04:43:14 UTC 2017


#42457: Scheduled changeset won't publish if Customizer is opened first after
missing schedule
-------------------------------------------+--------------------------
 Reporter:  LittleBigThing                 |       Owner:  westonruter
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  4.9
Component:  Customize                      |     Version:  4.9
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch commit dev-reviewed  |     Focuses:
-------------------------------------------+--------------------------
Changes (by westonruter):

 * owner:   => westonruter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42138"]:
 {{{
 #!CommitTicketReference repository="" revision="42138"
 Customize: Fix reliability of just-in-time publishing for changesets that
 miss their schedule when visiting `customize.php`.

 When just doing `wp_publish_post()` for the changeset from
 `customize.php`, any option-based settings will fail to get saved because
 `WP_Customize_Manager` would have already been loaded with
 `settings_previewed`, resulting in `update_option()` calls being short-
 circuited. So an admin-ajax request to `customize_save` is used to work
 around this.

 Props westonruter, jeremyfelt, dlh for testing, LittleBigThing for
 testing.
 Amends [41626].
 See #28721, #39221.
 Fixes #42457 for trunk.
 }}}

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


More information about the wp-trac mailing list