[wp-trac] [WordPress Trac] #42030: Introduce pre_trash_post filter

WordPress Trac noreply at wordpress.org
Wed Oct 11 05:41:18 UTC 2017


#42030: Introduce pre_trash_post filter
-------------------------------+-----------------------------
 Reporter:  bor0               |       Owner:  SergeyBiryukov
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.9
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------

Comment (by westonruter):

 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/42030#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list