WordPress.org

Make WordPress Core

Changeset 23594 for trunk/wp-mail.php


Ignore:
Timestamp:
03/03/2013 09:11:40 PM (8 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-mail.php

    r23554 r23594  
    203203
    204204    $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status');
    205     $post_data = add_magic_quotes($post_data);
     205    $post_data = wp_slash($post_data);
    206206
    207207    $post_ID = wp_insert_post($post_data);
Note: See TracChangeset for help on using the changeset viewer.