[wp-trac] [WordPress Trac] #22944: Scheduled posts trigger the non-unfiltered_html filters (regression)

WordPress Trac noreply at wordpress.org
Thu Dec 27 14:53:46 UTC 2012


#22944: Scheduled posts trigger the non-unfiltered_html filters (regression)
-----------------------------------------------+--------------------
 Reporter:  Otto42                             |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  high                               |   Milestone:  3.5.1
Component:  General                            |     Version:  3.5
 Severity:  critical                           |  Resolution:
 Keywords:  has-patch commit needs-unit-tests  |
-----------------------------------------------+--------------------

Comment (by nacin):

 Replying to [comment:12 SergeyBiryukov]:
 > [attachment:22944.2.patch] fixes that, however it turned out that
 `clean_post_cache()` is also needed for the test to pass. Added in
 [attachment:22944.3.patch]. Not sure if the test should call it or
 `wp_publish_post()` itself.

 wp_publish_post() needs to call clean_post_cache() on its own. It did it
 implicitly in 3.5 via the save_post hook, but that meant we were calling
 it twice on wp_insert_post(), and that made no sense.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22944#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list