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

WordPress Trac noreply at wordpress.org
Tue Nov 18 18:44:31 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:                |     Focuses:
--------------------------+------------------------------

Comment (by uplink3r):

 I discovered it's being caused by a plugin that I wrote but here is the
 code for the plugin (slightly refactored).  Obviously this code should do
 almost nothing as presented here.
 {{{
 function do_the_save( $post_id ){
         $content = get_post_field('post_content', $post_id);
         remove_action('save_post', __METHOD__);
         wp_update_post( array('ID' => $post_id, 'post_content' =>
 $content) );
         add_action('save_post', __METHOD__);
 }
 add_action('save_post', 'do_the_save');
 }}}

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


More information about the wp-trac mailing list