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

WordPress Trac noreply at wordpress.org
Fri Dec 21 01:56:25 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 SergeyBiryukov):

 [attachment:22944.test.patch] is an attempt at the unit test.

 Replying to [comment:8 nacin]:
 > A future-dated post should be forcibly moved to publish with
 wp_publish_post().

 This currently doesn't happen due to the check in `wp_insert_post()`:
 [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5/wp-includes/post.php#L2817

 [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.

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


More information about the wp-trac mailing list