WordPress.org

Make WordPress Core

Ticket #27550: 27550-patch-refreshed.diff

File 27550-patch-refreshed.diff, 645 bytes (added by dmenard, 4 years ago)

Denis patch refreshed against current trunk

  • src/wp-includes/post.php

     
    27952795        add_post_meta($post_id,'_wp_trash_meta_time', time());
    27962796
    27972797        $post['post_status'] = 'trash';
     2798        $post = wp_slash($post); // #27550
    27982799        wp_insert_post($post);
    27992800
    28002801        wp_trash_post_comments($post_id);
     
    28422843        delete_post_meta($post_id, '_wp_trash_meta_status');
    28432844        delete_post_meta($post_id, '_wp_trash_meta_time');
    28442845
     2846        $post = wp_slash($post); // #27550
    28452847        wp_insert_post($post);
    28462848
    28472849        wp_untrash_post_comments($post_id);