[wp-trac] [WordPress Trac] #42175: Customize: Remove call to `wp_trash_post()`
WordPress Trac
noreply at wordpress.org
Wed Oct 11 05:41:19 UTC 2017
#42175: Customize: Remove call to `wp_trash_post()`
--------------------------+--------------------------
Reporter: dlh | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: Customize | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"41824"]:
{{{
#!CommitTicketReference repository="" revision="41824"
Customize: Introduce `WP_Customize_Manager::trash_changeset_post()` to
reduce duplication and ensure proper changeset trashing logic.
Trashing a changeset via `wp_trash_post()` does not have the desired
result since it mutates `post_content` (via Kses) and the `post_name`
(even though it is a UUID).
Props dlh.
See #39896, #42030.
Fixes #42175.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42175#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list