[wp-trac] [WordPress Trac] #30937: Add Customizer state persistence in changesets (formerly “transactions”)

WordPress Trac noreply at wordpress.org
Wed Nov 9 07:02:54 UTC 2016


#30937: Add Customizer state persistence in changesets (formerly “transactions”)
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:
     Type:  feature request                      |  westonruter
 Priority:  high                                 |      Status:  closed
Component:  Customize                            |   Milestone:  4.7
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:  fixed
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"39181"]:
 {{{
 #!CommitTicketReference repository="" revision="39181"
 Customize: Store modifying user ID with setting change written into
 changeset and restore current user when setting is being saved.

 Restoring the current user context when saving a setting ensures filters
 apply as expected, such as Kses. When a user is not associated with a
 given setting change, continue to override `capability` to be `exist` when
 saving. Skip overwriting setting values in a changeset that have not
 changed, facilitating concurrent editing and amending a changeset by a
 user with fewer privileges.

 See #30937.
 Fixes #38705.
 }}}

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


More information about the wp-trac mailing list