[wp-trac] [WordPress Trac] #38705: Store user ID with setting change written into changeset and restore user when setting is saved
WordPress Trac
noreply at wordpress.org
Wed Nov 9 07:02:56 UTC 2016
#38705: Store user ID with setting change written into changeset and restore user
when setting is saved
--------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: Customize | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
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/38705#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list