[wp-trac] [WordPress Trac] #30389: Scheduled posts delete iframes (filter HTML) on publish

WordPress Trac noreply at wordpress.org
Mon Dec 1 23:31:34 UTC 2014


#30389: Scheduled posts delete iframes (filter HTML) on publish
-------------------------------------------+------------------------------
 Reporter:  uplink3r                       |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  General                        |     Version:  4.0
 Severity:  normal                         |  Resolution:
 Keywords:  2nd-opinion reporter-feedback  |     Focuses:
-------------------------------------------+------------------------------
Changes (by collinsinternet):

 * keywords:   => 2nd-opinion reporter-feedback


Comment:

 While I was able to duplicate your issue with your code, I do not feel
 that this is a WP Core issue.

 The disconnect happens at wp_update_post() in your code where content gets
 sanitized.  You could remove the 'content_save_pre' filter prior to
 wp_update_post() to resolve your issue.


 {{{
 remove_filter('content_save_pre', 'wp_filter_post_kses');
 wp_update_post( array('ID' => $post_id, 'post_content' => $content) );
 add_filter('content_save_pre', 'wp_filter_post_kses');
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30389#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list