Make WordPress Core

Changeset 34668

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

Correctly slash post fields when trashing and untrashing posts.

Fixes #27550
Props dmenard, Denis-de-Bernardy

Location:
trunk
Files:
2 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();
    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();
    25692569
    25702570    wp_untrash_post_comments($post_id);
  • trunk/tests/phpunit/tests/post/slashes.php

    r31065 r34668  
    130130    }
    131131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
    132161}
Note: See TracChangeset for help on using the changeset viewer.