WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/28/2015 07:25:05 PM (4 years ago)
Author:
johnbillion
Message:

Correctly slash post fields when trashing and untrashing posts.

Fixes #27550
Props dmenard, Denis-de-Bernardy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-functions.php

    r34566 r34668  
    25192519
    25202520    $post['post_status'] = 'trash';
    2521     wp_insert_post($post);
     2521    wp_insert_post( wp_slash( $post ) );
    25222522
    25232523    wp_trash_post_comments($post_id);
     
    25662566    delete_post_meta($post_id, '_wp_trash_meta_time');
    25672567
    2568     wp_insert_post($post);
     2568    wp_insert_post( wp_slash( $post ) );
    25692569
    25702570    wp_untrash_post_comments($post_id);
Note: See TracChangeset for help on using the changeset viewer.